HingeJoint.anglevar angle : floatDescriptionThe 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.
JavaScripts
print(hingeJoint.angle);
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { print(hingeJoint.angle); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): print(hingeJoint.angle) |
