PrismaticConstraint
A PrismaticConstraint creates a rigid joint between two Attachments, allowing them to slide along one axis but not rotate. 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.
This constraint inherits many properties from SlidingBallConstraint including ActuatorType, LimitsEnabled, Velocity, and more. Please refer to SlidingBallConstraint for details on configuring a PrismaticConstraint.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Summary
Properties
Properties inherited from SlidingBallConstraintSets whether the translation of the SlidingBallConstraint is actuated and, if so, what kind of actuation.
The current offset between the constraint's Attachments.
Sets whether the SlidingBallConstraint will limit the range of translation.
Specifies the "sharpness" of the linear servo motor in reaching the TargetPosition.
The lower positional limit along the X axis of Attachment0 if LimitsEnabled is true.
The constraint's maximum acceleration when ActuatorType is set to Motor as the constraint attempts to reach its desired Velocity.
The constraint's maximum force when ActuatorType is set to Motor, as the constraint attempts to reach its desired Velocity.
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 constraint's maximum force when ActuatorType is set to Servo, as the constraint attempts to reach its desired Speed.
The constraint's visualized size.
The constraint's desired speed when ActuatorType is set to Servo, as the constraint translates towards its TargetPosition. Measured in studs per second.
The constraint's attempted target position when ActuatorType is set to Servo. Measured in studs.
The upper positional limit along the X axis of Attachment0 if LimitsEnabled is true.
The constraint's attempted velocity when ActuatorType is set to Motor. Measured in studs per second.
Indicates if the constraint is currently active in the world.
The Attachment that is connected to Constraint.Attachment1.
The Attachment that is connected to Constraint.Attachment0.
The color of the constraint.
Toggles whether or not the constraint is enabled.
Toggles the constraint's visibility.