Class BearingJoint

Represents a bearing joint.

Hierarchy

  • Joint

    Hierarchy

    • BearingJoint

Constructors

Properties

fileJoint: FileJoint & { controller: undefined }
fileShape: FileShape
create: ((...args: [position: Vector3, rotation: Axis, childA: Child, childB?: Child, color?: string]) => Joint) = ...

Type declaration

    • (...args: [position: Vector3, rotation: Axis, childA: Child, childB?: Child, color?: string]): Joint
    • Creates a bearing.

      Returns

      The created bearing.

      Parameters

      Returns Joint

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

  • Attempts to convert a Joint to BearingJoint. Only returns if the Joint's file object is a BearingJoint.

    Returns

    The converted BearingJoint, or undefined if the Joint was not a BearingJoint.

    Parameters

    • potential: Joint

      The Joint to convert.

    Returns undefined | BearingJoint

Generated using TypeDoc