CharacterController.slopeLimit 坡度限制


var slopeLimit : float

Description描述

The character controllers slope limit in   degrees

角色控制器的坡度度数限制。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public CharacterController controller;public void Awake() {controller = GetComponent<CharacterController>();controller.slopeLimit = 45.0F;}}
// Set the controller slope limit to 45.0 degrees//设置控制器的坡度限制为45.0度var controller : CharacterController;controller = GetComponent(CharacterController);controller.slopeLimit = 45.0;


,