Core ScriptRuntime Module responsible for handling navigation of current player.

Hierarchy

  • UniNavigation

Constructors

Properties

_movementState: MovementState

Methods

  • Returns the calculated Y-Axis rotation between points to determine the direction.

    Parameters

    Returns number

  • Retuns true if there is currently a navigation going on.

    Returns boolean

  • Sets the desired target position for navigation to handle. accepts a target position and a callback function to abort the navigation.

    Parameters

    • targetPosition: IVector3

      The position to navigate to.

    • pathTraversible: boolean

      This paremeter should reflect weither or not the path can be directly traveled without requireing pathfinding.

    • abortTick: (() => boolean)

      This callback function gets called every movement tick, return true to abort navigation.

        • (): boolean
        • Returns boolean

    • avoidSpheres: DynamicObstacle[] = []

    Returns void

Generated using TypeDoc