Documentation - v19.12.0-dev
    Preparing search index...

    Function getDirectionFromVectors

    • Computes the normalized direction vector from startPosition to endPosition.

      Parameters

      • startPosition: Vector3

        The origin of the direction.

      • endPosition: Vector3

        The point the direction points towards.

      • target: Vector3

        The vector that will receive the result.

      Returns Vector3

      The target vector, set to the normalized direction.