class HingeJoint

Inherits: Joint

Hinge joint removes all but a single rotation degree of freedom from its two attached bodies (for example a door hinge).

Public

Constructors

HingeJoint

HingeJoint(const HSceneObject &parent)

Methods

GetAngle

Radian GetAngle() const

Returns the current angle between the two attached bodes.

GetSpeed

float GetSpeed() const

Returns the current angular speed of the joint.

SetLimit

void SetLimit(const LimitAngularRange &limit)

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.

GetLimit

LimitAngularRange GetLimit() const

SetDrive

void SetDrive(const HingeJointDrive &drive)

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.

GetDrive

HingeJointDrive GetDrive() const

SetFlag

void SetFlag(HingeJointFlag flag, bool enabled)

Enables or disables a flag that controls joint behaviour.

HasFlag

bool HasFlag(HingeJointFlag flag) const

Checks is the specified option enabled.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const

Returns an interface you can use to access class' Run Time Type Information.

Internal

Methods

GetImplementation

IHingeJointImplementation &GetImplementation() const

Returns the low level joint implementation.

Protected

Constructors

HingeJoint

HingeJoint()

Methods

CreateImplementation

UPtr<IJointImplementation> CreateImplementation() override

Creates the implementation the joint for use by the component.

Fields

mInformation