Get Tracked Device Position and Orientation

Gets the orientation and position (in device space) of the device with the specified ID

Target is Steam VRFunction Library

Get Tracked Device Position and Orientation
Device Id
0
Out Position
X0
Y 0
Z 0
Out Orientation
R 0
P 0
Y0
Return Value

Inputs

Device Id
Integer

Id of the device to get tracking info for

Outputs

Out Position
Vector

(out) Current position of the device

Out Orientation
Rotator

(out) Current orientation of the device

Return Value
Boolean

True if the specified device id had a valid tracking pose this frame, false otherwise