Class HingeJoint
Physics joint that removes all but a single rotation degree of freedom from its two attached bodies (for example a door hinge).
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Physics/Joints/HingeJoint.h
Syntax
public class HingeJoint : public Joint
Methods
CreateJoint(const PhysicsJointDesc& desc)
Declaration
protected void* CreateJoint(const PhysicsJointDesc& desc) override
Parameters
PhysicsJointDesc
desc
|
Returns
void
|
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
GetCurrentAngle()
Gets the current angle of the joint (in radians, in the range (-Pi, Pi]).
Declaration
public float GetCurrentAngle() const
Returns
float
|
GetCurrentVelocity()
Gets the current velocity of the joint.
Declaration
public float GetCurrentVelocity() const
Returns
float
|
GetDrive()
Gets the joint drive properties.
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.
Declaration
public HingeJointDrive GetDrive() const
Returns
HingeJointDrive
|
GetFlags()
Gets the joint mode flags. Controls joint behaviour.
Declaration
public HingeJointFlag GetFlags() const
Returns
HingeJointFlag
|
GetLimit()
Gets the joint limit properties.
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.
Declaration
public LimitAngularRange GetLimit() const
Returns
LimitAngularRange
|
OnDebugDrawSelected()
Draws debug shapes for the selected actor and all child scripts.
Declaration
public virtual void OnDebugDrawSelected() override
Overrides
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
SerializeStream
stream
The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |
Overrides
SetDrive(const HingeJointDrive& value)
Sets the joint drive properties.
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.
Declaration
public void SetDrive(const HingeJointDrive& value)
Parameters
HingeJointDrive
value
|
SetFlags(const HingeJointFlag value)
Sets the joint mode flags. Controls joint behaviour.
Declaration
public void SetFlags(const HingeJointFlag value)
Parameters
HingeJointFlag
value
|
SetLimit(const LimitAngularRange& value)
Sets the joint limit properties.
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.
Declaration
public void SetLimit(const LimitAngularRange& value)
Parameters
LimitAngularRange
value
|