Class ThrusterPart

Represents a thruster.

Hierarchy

  • Child

    Hierarchy

    • ThrusterPart

Constructors

Properties

fileChild: FileChild
fileShape: FileShape

Accessors

  • get color(): string
  • The color of this shape.

    Returns string

  • set color(value: string): void
  • Parameters

    • value: string

    Returns void

  • get shapeId(): string
  • The shapeId of this shape. Determines the model and behavior in-game.

    Returns string

  • set shapeId(value: string): void
  • Parameters

    • value: string

    Returns void

Methods

  • Connects this child to another child. Both children must be interactable.

    Parameters

    • other: number | Child

      The Child object or the ID of the child to connect to.

    Returns void

  • Disconnects this child from another child.

    Parameters

    • other: number | Child

      The Child object or the ID of the child to disconnect from.

    Returns void

  • Creates a thruster.

    Returns

    The created thruster.

    Parameters

    • position: Vector3

      The position of the thruster.

    • rotation: Axis

      The rotation of the thruster.

    • Optional color: string

      The color of the thruster. Fallbacks to the thruster's default color.

    • level: number = 5

      The level of the thruster. Defaults to 5.

    Returns ThrusterPart

Generated using TypeDoc