RenderWare V2.1

Previous Page Index Next Page

RwMatrix4d *

RwGetLightLTM(RwLight *light, RwMatrix4d *matrix);

Description

Retrieves the light’s 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

RwCreateLight()

RwGetClumpLTM()

RwGetCameraLTM()

RwGetLightPosition()

RwGetLightVector()

RwSetLightPosition()

RwSetLightVector()

RwTransformCamera()

RwTransformClump()

RwTransformLight()