2.8 KiB
| title | description |
|---|---|
| Prismatic | PrismaticConstraint allows two attachments to slide along one axis but not rotate, with optional assigned power for mechanisms like sliding doors and elevator platforms. |
A Class.PrismaticConstraint creates a rigid joint between two attachments, allowing them to slide along one axis but not rotate. The constraint can also be powered for mechanisms like sliding doors and elevator platforms.
Linear power
If a prismatic's Class.PrismaticConstraint|ActuatorType is set to Enum.ActuatorType|Motor, it attempts to translate the attachments with the goal of reaching Class.PrismaticConstraint|Velocity. You can further control this translation through both Class.PrismaticConstraint|MotorMaxAcceleration and Class.PrismaticConstraint|MotorMaxForce.
If a prismatic's Class.PrismaticConstraint|ActuatorType is set to Enum.ActuatorType|Servo, it attempts to translate the attachments to a set separation specified by Class.PrismaticConstraint|TargetPosition. This translation is controlled by Class.PrismaticConstraint|Speed, Class.PrismaticConstraint|LinearResponsiveness, and Class.PrismaticConstraint|ServoMaxForce.
Limits
You can set limits to restrict the sliding range a prismatic. Enabling the Class.PrismaticConstraint|LimitsEnabled property exposes the Class.PrismaticConstraint|LowerLimit and Class.PrismaticConstraint|UpperLimit values, as well as Class.PrismaticConstraint|Restitution which defines the elasticity of the attachments when they reach either limit.