A* Pathfinding Project
4.1.19
The A* Pathfinding Project for Unity 3D
|
Transforms to and from world space to a 2D movement plane. More...
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.
Public Member Functions | |
Vector2 | ToPlane (Vector3 p) |
Vector2 | ToPlane (Vector3 p, out float elevation) |
Vector3 | ToWorld (Vector2 p, float elevation=0) |
Vector2 ToPlane | ( | Vector3 | p | ) |
Implemented in GraphTransform.
Vector2 ToPlane | ( | Vector3 | p, |
out float | elevation | ||
) |
Implemented in GraphTransform.
Vector3 ToWorld | ( | Vector2 | p, |
float | elevation = 0 |
||
) |
Implemented in GraphTransform.