RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwVCMoveCamera(RwCamera *camera, RwReal x, RwReal y, RwReal z);

Description

Moves the camera position by the given delta (x, y, z) values (in camera space units) with respect to the camera’s orientation. For instance, a positive z value moves the camera forward.

Arguments

camera Pointer to the camera.

x Amount to move the camera along its X axis (in camera space units).

y Amount to move the camera along its Y axis (in camera space units).

z Amount to move the camera along its Z axis (in camera space units).

Return Value

The argument camera if successful, and NULL otherwise.

See Also

RwGetCameraPosition()

RwResetCamera()

RwSetCameraPosition()

RwTransformCamera()

RwWCMoveCamera()