lerp Method

Moves a 3D coordinate a given percentage towards another coordinate.

lerp(coord, percentage);

 

Parameter

Description

coord

Can be  SGCoord2D, SGCoord3D or SGPosition

percentage

The percentage to move (0.0 – 1.0)

Return Value

An SGCoord3D object that represents the new position after the move.