Class Position

Represent a position (like x, y or z)

Hierarchy

  • Position

Constructors

  • Example

    const pos    = new Position("~5")
    = new Position("^2")
    = new Position(-25)
    = [...]

    Parameters

    • Optional pos: string | number

      Set the position (by default it's set to 0)

    Returns Position

Properties

position: string
type: posType

Methods

  • Set as a relative position from the entity's position (like ~5 or ~-7.36...)

    Parameters

    • thenAdd: number

      The position relatively to the entity's postion

    Returns Position

  • Set as a relative position from the entity's rotation (like ^-95 or ^.25...)

    Parameters

    • thenAdd: number

      The position relatively to the entity's rotation

    Returns Position

Generated using TypeDoc