PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

PrismaticConstraint

Show deprecated

PrismaticConstraint

Show deprecated

A PrismaticConstraint creates a rigid joint between two Attachment|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 Enum/ActuatorType|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 Enum/ActuatorType|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.

Properties

Functions

Events