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
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
Enables or disables a flag that controls the joint's behaviour.
staticGetRttiStatic
static RTTIType *GetRttiStatic()
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
Calculates the local position/rotation that needs to be applied to the particular joint body.
Fields
mInformation
SliderJointCreateInformation mInformation