WheelCollider.radius 半径

var radius : float

Description描述

The radius of the wheel, measured in local space.

车轮的半径,基于物体的自身坐标空间。

The radius will be scaled by the transform's scale.

如果修改变换的缩放,半径的缩放也将改变。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		collider.radius = 0.5F;
	}
}
collider.radius = 0.5;
Page last updated: 2010-12-22