A base class for a shape contained in a body. Has a position and rotation, and can be connected to other childs (assuming they are both interactable).
Private
Readonly
The color of this shape.
The position of this child.
The rotation of this child.
The shapeId of this shape. Determines the model and behavior in-game.
Connects this child to another child. Both children must be interactable.
The Child object or the ID of the child to connect to.
Disconnects this child from another child.
The Child object or the ID of the child to disconnect from.
Gets a list of the IDs of the children this child is connected to.
The list of IDs.
Gets the ID of the child.
The ID of the child.
Protected
Static
Attempts to convert a Shape to a Child. Only returns if the Shape's file object is a Child.
The converted Child, or undefined if the Shape was not a Child.
The Shape to convert.
Generated using TypeDoc
A base class for a shape contained in a body. Has a position and rotation, and can be connected to other childs (assuming they are both interactable).