SlidingBallConstraint

Show Deprecated
Not Creatable

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.

Summary

Properties

Properties inherited from Constraint

Properties

Properties

ActuatorType

Read Parallel

CurrentPosition

Read Only
Not Replicated
Read Parallel

LimitsEnabled

Read Parallel

LinearResponsiveness

Read Parallel

LowerLimit

Read Parallel

MotorMaxAcceleration

Read Parallel

MotorMaxForce

Read Parallel

Restitution

Read Parallel

ServoMaxForce

Read Parallel

Size

Read Parallel

Speed

Read Parallel

TargetPosition

Read Parallel

UpperLimit

Read Parallel

Velocity

Read Parallel

Methods

Events