void Set |
( |
Quaternion |
rotation | ) |
|
Vector2 ToPlane |
( |
Vector3 |
point | ) |
|
Transforms from world space to the 'ground' plane of the graph.
The transformation is purely a rotation so no scale or offset is used.
For a graph rotated with the rotation (-90, 0, 0) this will transform a coordinate (x,y,z) to (x,y). For a graph with the rotation (0,0,0) this will tranform a coordinate (x,y,z) to (x,z). More generally for a graph with a quaternion rotation R this will transform a vector V to R * V (i.e rotate the vector V using the rotation R).
Vector2 ToPlane |
( |
Vector3 |
point, |
|
|
out float |
elevation |
|
) |
| |
Transforms from world space to the 'ground' plane of the graph.
The transformation is purely a rotation so no scale or offset is used.
Vector3 ToWorld |
( |
Vector2 |
point, |
|
|
float |
elevation = 0 |
|
) |
| |
Transforms from the 'ground' plane of the graph to world space.
The transformation is purely a rotation so no scale or offset is used.
Quaternion inverseRotation = Quaternion.identity |
Quaternion rotation = Quaternion.identity |
The documentation for this class was generated from the following file:
- /Users/arong/unity/a-pathfinding-project/Assets/AstarPathfindingProject/Generators/Utilities/GraphTransform.cs