SlidingBallConstraint
The base class for constraints that allow their attachments to slide along an axis but not rotate.
Memory category | PhysicsParts |
---|
Member index 15
Description
SlidingBallConstraint is the base class for constraints that allow their attachments to slide along an axis but not rotate, including PrismaticConstraint and CylindricalConstraint. This constrains the attachments so that their X axes are collinear but pointing in opposite directions. It also constrains the attachments so that their Y axes are parallel.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Linear Power
If this constraint's ActuatorType is set to Motor, it attempts to translate the attachments with the goal of reaching Velocity. You can further control this translation through both MotorMaxAcceleration and MotorMaxForce.
If this constraint's ActuatorType is set to Servo, it attempts to translate the attachments to a set separation specified by TargetPosition. This translation is controlled by Speed, LinearResponsiveness, and ServoMaxForce.
Limits
You can set limits to restrict this constraint's sliding range. Enabling the LimitsEnabled property exposes the LowerLimit and UpperLimit values, as well as Restitution which defines the elasticity of the attachments when they reach either limit.
History 61
- 611 Change Tags of SoftlockServoUponReachingTarget from [] to [Deprecated]
- 600 Add SoftlockServoUponReachingTarget
- 553 Change Default of Velocity from to
- 553 Change Default of UpperLimit from to
- 553 Change Default of TargetPosition from to
- 553 Change Default of Speed from to
- 553 Change Default of Size from to
- 553 Change Default of ServoMaxForce from to
- 553 Change Default of Restitution from to
- 553 Change Default of MotorMaxForce from to
- 553 Change Default of MotorMaxAcceleration from to
- 553 Change Default of LowerLimit from to
- 553 Change Default of LinearResponsiveness from to
- 553 Change Default of LimitsEnabled from to
- 553 Change Default of CurrentPosition from to
- 553 Change Default of ActuatorType from to
- 486 Change ThreadSafety of Velocity from ReadOnly to ReadSafe
- 486 Change ThreadSafety of UpperLimit from ReadOnly to ReadSafe
- 486 Change ThreadSafety of TargetPosition from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Speed from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Size from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ServoMaxForce from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MotorMaxForce from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MotorMaxAcceleration from ReadOnly to ReadSafe
- 486 Change ThreadSafety of LowerLimit from ReadOnly to ReadSafe
- 486 Change ThreadSafety of LinearResponsiveness from ReadOnly to ReadSafe
- 486 Change ThreadSafety of LimitsEnabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CurrentPosition from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ActuatorType from ReadOnly to ReadSafe
- 470 Add LinearResponsiveness
- 462 Change ThreadSafety of Velocity from to ReadOnly
- 462 Change ThreadSafety of UpperLimit from to ReadOnly
- 462 Change ThreadSafety of TargetPosition from to ReadOnly
- 462 Change ThreadSafety of Speed from to ReadOnly
- 462 Change ThreadSafety of Size from to ReadOnly
- 462 Change ThreadSafety of ServoMaxForce from to ReadOnly
- 462 Change ThreadSafety of Restitution from to ReadOnly
- 462 Change ThreadSafety of MotorMaxForce from to ReadOnly
- 462 Change ThreadSafety of MotorMaxAcceleration from to ReadOnly
- 462 Change ThreadSafety of LowerLimit from to ReadOnly
- 462 Change ThreadSafety of LimitsEnabled from to ReadOnly
- 462 Change ThreadSafety of CurrentPosition from to ReadOnly
- 462 Change ThreadSafety of ActuatorType from to ReadOnly
- 454 Change MemoryCategory of SlidingBallConstraint from Instances to PhysicsParts
- 452 Change MemoryCategory of SlidingBallConstraint from PhysicsParts to Instances
- 453 Change MemoryCategory of SlidingBallConstraint from Instances to PhysicsParts
- 261 Add Size
- 241 Add Velocity
- 241 Add UpperLimit
- 241 Add TargetPosition
- 241 Add Speed
- 241 Add ServoMaxForce
- 241 Add Restitution
- 241 Add MotorMaxForce
- 241 Add MotorMaxAcceleration
- 241 Add LowerLimit
- 241 Add LimitsEnabled
- 241 Add CurrentPosition
- 241 Add ActuatorType
- 241 Add SlidingBallConstraint
Members 15
ActuatorType
Type | Default | |
---|---|---|
ActuatorType |
Sets whether the translation of the SlidingBallConstraint is actuated and, if so, what kind of actuation.
If ActuatorType is set to None, the joint can slide freely.
If ActuatorType is set to Motor, it attempts to translate the attachments with the goal of reaching Velocity. You can further control this translation through both MotorMaxAcceleration and MotorMaxForce.
If this constraint's ActuatorType is set to Servo, it attempts to translate the attachments to a set separation specified by TargetPosition. This translation is controlled by Speed, LinearResponsiveness, and ServoMaxForce.
Thread safety | ReadSafe |
---|---|
Category | Slider |
Loaded/Saved | true |
History 4
- 553 Change Default of ActuatorType from to
- 486 Change ThreadSafety of ActuatorType from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ActuatorType from to ReadOnly
- 241 Add ActuatorType
CurrentPosition
Type | Default | |
---|---|---|
float |
The current offset between the constraint's Attachments.
Thread safety | ReadSafe |
---|---|
Category | Derived |
Loaded/Saved | false/true |
History 4
- 553 Change Default of CurrentPosition from to
- 486 Change ThreadSafety of CurrentPosition from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CurrentPosition from to ReadOnly
- 241 Add CurrentPosition
LimitsEnabled
Type | Default | |
---|---|---|
bool |
Sets whether the SlidingBallConstraint will limit the range of translation. If true, this property exposes the LowerLimit and UpperLimit values, as well as Restitution which defines the elasticity of the attachments when they reach either limit.
Thread safety | ReadSafe |
---|---|
Category | Slider |
Loaded/Saved | true |
History 4
- 553 Change Default of LimitsEnabled from to
- 486 Change ThreadSafety of LimitsEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of LimitsEnabled from to ReadOnly
- 241 Add LimitsEnabled
LinearResponsiveness
Type | Default | |
---|---|---|
float |
Specifies the "sharpness" of the linear servo motor in reaching the TargetPosition when the derived classes' actuator type is set to Servo. Larger values correspond to faster a response and smaller values results in more damping and a slower response.
Thread safety | ReadSafe |
---|---|
Category | Servo |
Loaded/Saved | true |
History 3
- 553 Change Default of LinearResponsiveness from to
- 486 Change ThreadSafety of LinearResponsiveness from ReadOnly to ReadSafe
- 470 Add LinearResponsiveness
LowerLimit
Type | Default | |
---|---|---|
float |
The lower positional limit along the X axis of Attachment0 if LimitsEnabled is true.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
History 4
- 553 Change Default of LowerLimit from to
- 486 Change ThreadSafety of LowerLimit from ReadOnly to ReadSafe
- 462 Change ThreadSafety of LowerLimit from to ReadOnly
- 241 Add LowerLimit
MotorMaxAcceleration
Type | Default | |
---|---|---|
float |
The constraint's maximum acceleration when ActuatorType is set to Motor, as the constraint attempts to reach its desired Velocity.
Thread safety | ReadSafe |
---|---|
Category | Motor |
Loaded/Saved | true |
History 4
- 553 Change Default of MotorMaxAcceleration from to
- 486 Change ThreadSafety of MotorMaxAcceleration from ReadOnly to ReadSafe
- 462 Change ThreadSafety of MotorMaxAcceleration from to ReadOnly
- 241 Add MotorMaxAcceleration
MotorMaxForce
Type | Default | |
---|---|---|
float |
The constraint's maximum force when ActuatorType is set to Motor, as the constraint attempts to reach its desired Velocity.
Thread safety | ReadSafe |
---|---|
Category | Motor |
Loaded/Saved | true |
History 4
- 553 Change Default of MotorMaxForce from to
- 486 Change ThreadSafety of MotorMaxForce from ReadOnly to ReadSafe
- 462 Change ThreadSafety of MotorMaxForce from to ReadOnly
- 241 Add MotorMaxForce
Restitution
Type | Default | |
---|---|---|
float |
The elasticity of the constraint's Attachments when they reach the end of the range specified by UpperLimit and LowerLimit, assuming LimitsEnabled is set to true. The valid range is between 0–1.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
History 4
- 553 Change Default of Restitution from to
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Restitution from to ReadOnly
- 241 Add Restitution
ServoMaxForce
Type | Default | |
---|---|---|
float |
The constraint's maximum force when ActuatorType is set to Servo, as the constraint attempts to reach its desired Speed.
Thread safety | ReadSafe |
---|---|
Category | Servo |
Loaded/Saved | true |
History 4
- 553 Change Default of ServoMaxForce from to
- 486 Change ThreadSafety of ServoMaxForce from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ServoMaxForce from to ReadOnly
- 241 Add ServoMaxForce
Size
Type | Default | |
---|---|---|
float |
The constraint's visualized size.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
SoftlockServoUponReachingTarget
Type | Default | |
---|---|---|
bool |
Thread safety | ReadSafe |
---|---|
Category | Servo |
Loaded/Saved | true |
History 2
- 611 Change Tags of SoftlockServoUponReachingTarget from [] to [Deprecated]
- 600 Add SoftlockServoUponReachingTarget
Speed
Type | Default | |
---|---|---|
float |
The constraint's desired speed when ActuatorType is set to Servo, as the constraint translates towards its TargetPosition. Measured in studs per second.
Thread safety | ReadSafe |
---|---|
Category | Servo |
Loaded/Saved | true |
TargetPosition
Type | Default | |
---|---|---|
float |
The constraint's attempted target position when ActuatorType is set to Servo Measured in studs.
Thread safety | ReadSafe |
---|---|
Category | Servo |
Loaded/Saved | true |
History 4
- 553 Change Default of TargetPosition from to
- 486 Change ThreadSafety of TargetPosition from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TargetPosition from to ReadOnly
- 241 Add TargetPosition
UpperLimit
Type | Default | |
---|---|---|
float |
The upper positional limit along the X axis of Attachment0 if LimitsEnabled is true.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
History 4
- 553 Change Default of UpperLimit from to
- 486 Change ThreadSafety of UpperLimit from ReadOnly to ReadSafe
- 462 Change ThreadSafety of UpperLimit from to ReadOnly
- 241 Add UpperLimit
Velocity
Type | Default | |
---|---|---|
float |
The constraint's attempted velocity when ActuatorType is set to Motor. Measured in studs per second.
Thread safety | ReadSafe |
---|---|
Category | Motor |
Loaded/Saved | true |