A* Pathfinding Project  4.3.5
The A* Pathfinding Project for Unity 3D
IMovementPlane Interface Reference

Transforms to and from world space to a 2D movement plane. More...

Detailed Description

Transforms to and from world space to a 2D movement plane.

The transformation is guaranteed to be purely a rotation so no scale or offset is used. This interface is primarily used to make it easier to write movement scripts which can handle movement both in the XZ plane and in the XY plane.

See also
Pathfinding.Util.GraphTransform

Public Member Functions

Vector2 ToPlane (Vector3 p)
 
Vector2 ToPlane (Vector3 p, out float elevation)
 
Vector3 ToWorld (Vector2 p, float elevation=0)
 

Member Function Documentation

◆ ToPlane() [1/2]

Vector2 ToPlane ( Vector3  p)

Implemented in GraphTransform.

◆ ToPlane() [2/2]

Vector2 ToPlane ( Vector3  p,
out float  elevation 
)

Implemented in GraphTransform.

◆ ToWorld()

Vector3 ToWorld ( Vector2  p,
float  elevation = 0 
)

Implemented in GraphTransform.


The documentation for this interface was generated from the following file: