Class HingeJoint
Physics joint that removes all but a single rotation degree of freedom from its two attached bodies (for example a door hinge).
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorContextMenu("New/Physics/Joints/Hinge Joint")]
[ActorToolbox("Physics")]
[Unmanaged]
public class HingeJoint : Joint, ISerializable
Constructors
HingeJoint()
Properties
CurrentAngle
Gets the current angle of the joint (in radians, in the range (-Pi, Pi]).
Declaration
[Unmanaged]
public float CurrentAngle { get; }
Property Value
System.Single
|
CurrentVelocity
Gets the current velocity of the joint.
Declaration
[Unmanaged]
public float CurrentVelocity { get; }
Property Value
System.Single
|
Drive
Gets or sets the joint drive properties.
Declaration
[EditorOrder(120)]
[EditorDisplay("Joint", null)]
[Unmanaged]
public HingeJointDrive Drive { get; set; }
Property Value
HingeJointDrive
|
Remarks
Determines the drive properties of the joint. It drives the joint's angular velocity towards a particular value. You must enable the drive flag on the joint in order for the drive to be active.
Flags
Gets or sets the joint mode flags. Controls joint behaviour.
Declaration
[EditorOrder(100)]
[EditorDisplay("Joint", null)]
[Unmanaged]
public HingeJointFlag Flags { get; set; }
Property Value
HingeJointFlag
|
Limit
Gets or sets the joint limit properties.
Declaration
[EditorOrder(110)]
[EditorDisplay("Joint", null)]
[Unmanaged]
public LimitAngularRange Limit { get; set; }
Property Value
LimitAngularRange
|
Remarks
Determines the limit of the joint. Limit constrains the motion to the specified angle range. You must enable the limit flag on the joint in order for this to be recognized.