Class HingeJoint2D
Assembly: UnityEngine.dll
Syntax
public sealed class HingeJoint2D : AnchoredJoint2D
Properties
jointAngle
Declaration
public float jointAngle { get; }
Property Value
jointSpeed
Declaration
public float jointSpeed { get; }
Property Value
limits
Declaration
public JointAngleLimits2D limits { get; set; }
Property Value
limitState
Declaration
public JointLimitState2D limitState { get; }
Property Value
motor
Declaration
public JointMotor2D motor { get; set; }
Property Value
referenceAngle
Declaration
public float referenceAngle { get; }
Property Value
useLimits
Declaration
public bool useLimits { get; set; }
Property Value
useMotor
Declaration
public bool useMotor { get; set; }
Property Value
Methods
GetMotorTorque(Single)
Declaration
public float GetMotorTorque(float timeStep)
Parameters
Type |
Name |
Description |
Single |
timeStep |
|
Returns
Extension Methods