class SliderJoint

Inherits: Joint

Joint that removes all but a single translational degree of freedom.

Bodies are allowed to move along a single axis.

Public

Constructors

SliderJoint

SliderJoint(const HSceneObject &parent)

Methods

GetPosition

float GetPosition() const

Returns the current position of the slider.

GetSpeed

float GetSpeed() const

Returns the current speed of the slider.

SetLimit

void SetLimit(const LimitLinearRange &limit)

Determines a limit that constrains the movement of the joint to a specific minimum and maximum distance.

You must enable the limit flag on the joint in order for this to be recognized.

GetLimit

LimitLinearRange GetLimit() const

SetFlag

void SetFlag(SliderJointFlag flag, bool enabled)

Enables or disables a flag that controls the joint's behaviour.

HasFlag

bool HasFlag(SliderJointFlag flag) const

Checks is the specified flag 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

ISliderJointImplementation &GetImplementation() const

Returns the low level joint implementation.

Protected

Constructors

SliderJoint

SliderJoint()

Methods

CreateImplementation

UPtr<IJointImplementation> CreateImplementation() override

Creates the implementation the joint for use by the component.

CalculateLocalBodyTransform

void CalculateLocalBodyTransform(JointBody body, Vector3 &position, Quaternion &rotation) override

Calculates the local position/rotation that needs to be applied to the particular joint body.

Fields

mInformation