Returns the current position and orientation of a device or model.
Arguments
| Name | Type | Default | Description |
| device | Device | 'head' |
The device to get the pose of.
|
Returns
| Name | Type | Description |
| x | number |
The x position.
|
| y | number |
The y position.
|
| z | number |
The z position.
|
| 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 device to get the pose of.
|
Returns
| Name | Type | Description |
| x | number |
The x position.
|
| y | number |
The y position.
|
| z | number |
The z position.
|
| 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.
|
Units are in meters.
If the object isn't tracked, this function returns zeroes.
See also