lovr.graphics.getViewPose
Get the pose of a single view.
x, y, z, angle, ax, ay, az = lovr.graphics.getViewPose(view)
Arguments
Name | Type | Description |
view | number | The view index.
|
Returns
Name | Type | Description |
x | number | The x position of the viewer, in meters.
|
y | number | The y position of the viewer, in meters.
|
z | number | The z position of the viewer, in meters.
|
angle | number | The number of radians the viewer is rotated around its axis of rotation.
|
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.
|
matrix = lovr.graphics.getViewPose(view, matrix, invert)
Arguments
Name | Type | Description |
view | number | The view index.
|
matrix | Mat4 | The matrix to fill with the view pose.
|
invert | boolean | Whether the matrix should be inverted.
|
Returns
Name | Type | Description |
matrix | Mat4 | The matrix containing the view pose.
|
See also
lovr.headset.getViewPose
lovr.headset.getViewCount
lovr.graphics.getProjection
lovr.graphics.setProjection
lovr.graphics.setViewPose
lovr.graphics