Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

getTangent(t, [out])

Description:

Gets a unit vector tangent at a relative position on the path.

Parameters:

name type arguments description
t number

The relative position on the path, [0..1].

out Phaser.Math.Vector2 <optional>

A vector to store the result in.

Returns:
Description:

Vector approximating the tangent line at the point t (delta +/- 0.0001)

Since: 3.23.0
Source: src/curves/path/Path.js (Line 696)