WheelCollider.center 中心
var center : Vector3
Description描述
The center of the wheel, measured in the object's local space.
车轮的中心,基于物体的自身坐标空间。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {collider.center = Vector3.zero;}}
// Reset the center to the transform's position//重设中心到变换的中心collider.center = Vector3.zero;