Class SliderJoint
Physics joint that removes all but a single translational degree of freedom. Bodies are allowed to move along a single axis.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorContextMenu("New/Physics/Joints/Slider Joint")]
[ActorToolbox("Physics")]
[Unmanaged]
public class SliderJoint : Joint, ISerializable
Constructors
SliderJoint()
Properties
CurrentPosition
Gets the current displacement of the joint along its axis.
Declaration
[Unmanaged]
public float CurrentPosition { get; }
Property Value
System.Single
|
CurrentVelocity
Gets the current velocity of the joint along its axis.
Declaration
[Unmanaged]
public float CurrentVelocity { get; }
Property Value
System.Single
|
Flags
Gets or sets the joint mode flags. Controls joint behaviour.
Declaration
[EditorOrder(100)]
[EditorDisplay("Joint", null)]
[Unmanaged]
public SliderJointFlag Flags { get; set; }
Property Value
SliderJointFlag
|
Limit
Gets or sets the joint limit properties.
Declaration
[EditorOrder(110)]
[EditorDisplay("Joint", null)]
[Unmanaged]
public LimitLinearRange Limit { get; set; }
Property Value
LimitLinearRange
|
Remarks
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.