BasisGetOrthogonalIndex Method |
This function considers a discretization of rotations into
24 points on unit sphere, lying along the vectors (x, y, z) with
each component being either -1, 0, or 1, and returns the index
of the point best representing the orientation of the object.
It is mainly used by the
GridMap editor.
For further details, refer to the Godot source code.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax public int GetOrthogonalIndex()
Return Value
Type:
Int32The orthogonal index.
See Also