Pass:getViewPose

Get the pose of a single view.


x, y, z, angle, ax, ay, az = Pass:getViewPose(view)

Arguments

NameTypeDescription
viewnumber The view index.

Returns

NameTypeDescription
xnumber The x position of the viewer, in meters.
ynumber The y position of the viewer, in meters.
znumber The z position of the viewer, in meters.
anglenumber The number of radians the viewer is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

matrix = Pass:getViewPose(view, matrix, invert)

Arguments

NameTypeDescription
viewnumber The view index.
matrixMat4 The matrix to fill with the view pose.
invertboolean Whether the matrix should be inverted.

Returns

NameTypeDescription
matrixMat4 The matrix containing the view pose.

See also