nw::math::MTX34LookAtFIdx Function

Syntax

NW_MATH_INLINE MTX34 * MTX34LookAtFIdx(
     nw::math::MTX34 * pOut,
     const nw::math::VEC3 * pCamPos,
     f32 twist,
     const nw::math::VEC3 * pTarget
);

Arguments

Name Description
out pOut Pointer to the buffer that receives the result of the calculation.
in pCamPos Pointer to vector that specifies the camera position.
in twist The angle of rotation around the camera's line of sight, expressed in units where 256.0 is one full revolution.
in pTarget Pointer to the vector that specifies the camera's look-at point.

Return Values

Returns pOut.

Description

Sets the camera matrix.


CONFIDENTIAL