Readonly fileReadonly fileThe color of this shape.
Whether the controller is looped.
The shapeId of this shape. Determines the model and behavior in-game.
The time per frame of the controller.
Retrieves the sequence for a given joint if it exists.
The sequence of the joint, or undefined if it does not exist.
The piston or bearing to retrieve the sequence for.
Removes a sequence for a given joint from the controller if it exists.
The piston or bearing to remove the sequence for. Can be an ID.
Adds or updates a sequence for a joint in the controller.
The index of the sequence. Controls where in the UI the sequence is.
The piston or bearing to add or update.
The sequence of frames to add or update. The first element is the starting frame, when the controller is off. Missing values are filled in. Any items in the array past index 10 are ignored.
Whether positive angles will spin the bearing counter-clockwise (looking from the front). Only applies when this sequence is for a bearing. Defaults to false.
Protected updateStatic convertAttempts to convert a Child to ControllerPart. Only returns if the Child's file object is a ControllerPart.
The converted ControllerPart, or undefined if the Child was not a ControllerPart.
The Child to convert.
Static createCreates a controller.
The created controller.
The position of the controller.
The rotation of the controller.
Optional color: stringThe color of the controller. Fallbacks to the controller's default color.
Whether the controller is looped. Defaults to false.
The time per frame of the controller. Defaults to 1.
Generated using TypeDoc
Represents a Controller.