RwGetLightLTM(RwLight *light, RwMatrix4d *matrix);
Description
Retrieves the lights Local Transformation Matrix (LTM) which maps object space to world space.
Arguments
light Pointer to the light.
matrix Pointer to the matrix that will receive the LTM.
Return Value
The argument matrix if successful and NULL otherwise.
Comments
The matrix returned by this function may be used to position a camera or a clump at the light. The following code fragment demonstrates this.
RwGetLightLTM(Light,
RwScratchMatrix());
RwTransformCamera(Camera, RwScratchMatrix(),
rwREPLACE);
See Also