HingeJoint.angle 角
var angle : float
Description描述
The current angle in degrees of the joint relative to its rest position. (Read Only)
关节的当前角度,相对于它的静止位置。(只读)
The rest angle between the bodies is always zero at the beginning of the simulation.
两个刚体之间的静止角度在模拟开始时总是零。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
print(hingeJoint.angle);
}
}
print(hingeJoint.angle);
最后修改:2011年1月28日 Friday 15:32