RenderWare V2.1

Previous Page Index Next Page

RwBool

RwSetAxisAlignment(RwAxisAlignment alignment);

Description

Sets the axis alignment type of the current clump under construction.

Arguments

alignment The axis alignment type.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

The following axis alignment types are supported:

• rwNOAXISALIGNMENT The clump is not axis aligned, it is unconstrained.

• rwALIGNAXISZORIENTX
The clump’s local Z axis is aligned with the "Look At" vector of the camera, but the orientation of the 2D projection of the clump’s local X axis is preserved.

• rwALIGNAXISZORIENTY
The clump’s local Z axis is aligned with the "Look At" vector of the camera, but the orientation of the 2D projection of the clump’s local Y axis is preserved.

• rwALIGNAXISXYZ The local X, Y and Z axes of the clump are aligned with the camera’s "Look Right", "Look Up" and "Look At" vectors respectively.

A clump that is axis aligned will be aligned with the view planes of all camera’s used to view that clump.

This function can only be called within the context of an RwClumpBegin()RwClumpEnd() block.

See Also

RwClumpBegin()

RwClumpEnd()

RwCreateSprite()

RwSetClumpAxisAlignment()