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.
- See Also
- Pathfinding.Util.GraphTransform
Vector2 ToPlane |
( |
Vector3 |
p | ) |
|
Vector2 ToPlane |
( |
Vector3 |
p, |
|
|
out float |
elevation |
|
) |
| |
Vector3 ToWorld |
( |
Vector2 |
p, |
|
|
float |
elevation = 0 |
|
) |
| |
The documentation for this interface was generated from the following file:
- /Users/arong/unity/a-pathfinding-project/Assets/AstarPathfindingProject/Generators/Utilities/GraphTransform.cs