lovr.headset.getViewAngles
EditReturns the view angles of one of the headset views.
These can be used with Mat4:fov
to create a projection matrix.
If tracking data is unavailable for the view or the index is invalid, nil
is returned.
left, right, top, bottom = lovr.headset.getViewAngles(view)
Arguments
Name | Type | Description |
view | number | The view index. |
Returns
Name | Type | Description |
left | number | The left view angle, in radians. |
right | number | The right view angle, in radians. |
top | number | The top view angle, in radians. |
bottom | number | The bottom view angle, in radians. |