class IHingeJointImplementation

Low-level interface for a joint used by the HingeJoint component.

Should be implemented by the physics plugin to provide joint functionality.

Public

Methods

GetAngle

virtual Radian GetAngle() const = 0

Returns the current angle between the two attached bodes.

GetSpeed

virtual float GetSpeed() const = 0

Returns the current angular speed of the joint.

SetLimit

virtual void SetLimit(const LimitAngularRange &limit) = 0

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

virtual LimitAngularRange GetLimit() const = 0

SetDrive

virtual void SetDrive(const HingeJointDrive &drive) = 0

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

virtual HingeJointDrive GetDrive() const = 0

SetFlag

virtual void SetFlag(HingeJointFlag flag, bool enabled) = 0

Enables or disables a flag that controls joint behaviour.

HasFlag

virtual bool HasFlag(HingeJointFlag flag) const = 0

Checks is the specified option enabled.