Class Space
Inheritance
System.Object
Space
Namespace: GDX
Syntax
public static class Space
Methods
| Improve this Doc View SourceGetDirection(Vector3)
Get the corresponding Space.Direction for a UnityEngine.Vector3 provided direction.
Declaration
public static Space.Direction GetDirection(Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | direction | The given direction. |
Returns
Type | Description |
---|---|
Space.Direction | A qualified Space.Direction equivalent to the |
Remarks
Only works with deterministic directions builtin to Unity.
ToRotation(Space.Axis)
Declaration
public static Quaternion ToRotation(this Space.Axis axis)
Parameters
Type | Name | Description |
---|---|---|
Space.Axis | axis |
Returns
Type | Description |
---|---|
UnityEngine.Quaternion |
ToRotation(Space.Direction)
Declaration
public static Quaternion ToRotation(this Space.Direction direction)
Parameters
Type | Name | Description |
---|---|---|
Space.Direction | direction |
Returns
Type | Description |
---|---|
UnityEngine.Quaternion |