lovr.headset.getViewPose
EditReturns the pose of one of the headset views. This info can be used to create view matrices or do other eye-dependent calculations.
If tracking data is unavailable for the view or the index is invalid, nil
is returned.
x, y, z, angle, ax, ay, az = lovr.headset.getViewPose(view)
Arguments
Name | Type | Description |
view | number | The view index. |
Returns
Name | Type | Description |
x | number | The x coordinate of the view position, in meters. |
y | number | The y coordinate of the view position, in meters. |
z | number | The z coordinate of the view position, in meters. |
angle | number | The amount of rotation around the rotation axis, 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. |