Returns the current orientation of a device or model, in angle/axis form.
Arguments
| Name | Type | Default | Description |
| device | Device | 'head' |
The device to get the orientation of.
|
Returns
| Name | Type | Description |
| angle | number |
The amount of rotation around the axis of rotation, in radians.
|
| ax | number |
The x component of the axis of rotation.
|
| ay | number |
The y component of the axis of rotation.
|
| az | number |
The z component of the axis of rotation.
|
Arguments
| Name | Type | Description |
| model | Model |
The model to get the orientation of.
|
Returns
| Name | Type | Description |
| angle | number |
The amount of rotation around the axis of rotation, in radians.
|
| ax | number |
The x component of the axis of rotation.
|
| ay | number |
The y component of the axis of rotation.
|
| az | number |
The z component of the axis of rotation.
|
If the object isn't tracked, this function returns zeroes.
See also