Readonly fileReadonly fileThe color of this shape.
The length of the piston joint.
The shapeId of this shape. Determines the model and behavior in-game.
The speed of the piston joint.
Protected updateStatic _internalStatic convertAttempts to convert a Joint to PistonJoint. Only returns if the Joint's file object is a PistonJoint.
The converted PistonJoint, or undefined if the Joint was not a PistonJoint.
The Joint to convert.
Static createCreates a piston joint.
The created piston joint.
The position of the piston joint.
The rotation of the piston joint.
The first child of the piston joint.
Optional childB: ChildThe second child of the piston joint. Optional.
Optional color: stringThe color of the piston joint. Fallbacks to the piston's default color.
The length of the piston joint. Unused if the piston is connected to a controller. Defaults to 1.
The speed of the piston joint. Unused if the piston is connected to a controller. Defaults to 1.
Generated using TypeDoc
Represents a piston joint.