Class SliderJoint
Physics joint that removes all but a single translational degree of freedom. Bodies are allowed to move along a single axis.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Physics/Joints/SliderJoint.h
Syntax
public class SliderJoint : 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
GetCurrentPosition()
Gets the current displacement of the joint along its axis.
Declaration
public float GetCurrentPosition() const
Returns
float
|
GetCurrentVelocity()
Gets the current velocity of the joint along its axis.
Declaration
public float GetCurrentVelocity() const
Returns
float
|
GetFlags()
Gets the joint mode flags. Controls joint behaviour.
Declaration
public SliderJointFlag GetFlags() const
Returns
SliderJointFlag
|
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 LimitLinearRange GetLimit() const
Returns
LimitLinearRange
|
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
SetFlags(const SliderJointFlag value)
Sets the joint mode flags. Controls joint behaviour.
Declaration
public void SetFlags(const SliderJointFlag value)
Parameters
SliderJointFlag
value
|
SetLimit(const LimitLinearRange& value)
Sets the joint limit properties.
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.
Declaration
public void SetLimit(const LimitLinearRange& value)
Parameters
LimitLinearRange
value
|