CharacterController.radius 半径

var radius : float

Description描述

The radius of the character's capsule

角色胶囊体的半径。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public CharacterController controller;

	public void Awake() {

		controller = GetComponent<CharacterController>();

		controller.radius = 0.3F;

	}

}
//设置控制器的半径为0.3

var controller : CharacterController;

controller = GetComponent(CharacterController);

controller.radius = 0.3;
Page last updated: 2010-12-14