Class CompassDirection
Configures which cardinal direction Unity's world Z-axis represents.
Inherited Members
Object.GetEntityId()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public class CompassDirection : ScriptableObject
Remarks
NED and ENU coordinate space conversions depend on this setting.
The value is persisted as a ScriptableObject at
Assets/Resources/CompassDirectionSettings.asset.
Configure it once per project before any coordinate conversions are performed.
Fields
k_CompassSettingsAsset
The filename of the persisted compass direction settings asset.
Declaration
public const string k_CompassSettingsAsset = "CompassDirectionSettings.asset"
Field Value
| Type | Description |
|---|---|
| string |
k_NegativeNinetyYaw
A -90-degree yaw rotation used internally by geographic coordinate space conversions.
Declaration
public static readonly Quaternion k_NegativeNinetyYaw
Field Value
| Type | Description |
|---|---|
| Quaternion |
k_NinetyYaw
A 90-degree yaw rotation used internally by geographic coordinate space conversions.
Declaration
public static readonly Quaternion k_NinetyYaw
Field Value
| Type | Description |
|---|---|
| Quaternion |
k_OneEightyYaw
A 180-degree yaw rotation used internally by geographic coordinate space conversions.
Declaration
public static readonly Quaternion k_OneEightyYaw
Field Value
| Type | Description |
|---|---|
| Quaternion |
Properties
UnityZAxisDirection
Gets or sets the cardinal direction that Unity's world Z-axis represents.
Declaration
public static CardinalDirection UnityZAxisDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| CardinalDirection |