PrismaticConstraint
Show Deprecated
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 properties from SlidingBallConstraint and can be configured to actuate translation, as follows:
- If SlidingBallConstraint.ActuatorType is set to Motor, it will attempt to translate the attachments with the goal of reaching SlidingBallConstraint.Velocity. This translation is limited by both SlidingBallConstraint.MotorMaxAcceleration and SlidingBallConstraint.MotorMaxForce.
- If SlidingBallConstraint.ActuatorType is set to Servo, it will attempt to translate the attachments to a set separation specified by SlidingBallConstraint.TargetPosition.
Note that both actuated and free translation can be limited by setting SlidingBallConstraint.LimitsEnabled to true. Also note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.
Summary
Properties
Properties inherited from Constraint
Properties inherited from Instance
Properties inherited from SlidingBallConstraint
Methods
Methods inherited from Instance
Events
Events inherited from Instance
Properties
Properties inherited from Constraint
Properties inherited from Instance
Properties inherited from SlidingBallConstraint
Methods
Methods inherited from Instance
Events
Events inherited from Instance