anyKode Marilou
ContentsIndexHome
PreviousUpNext
Geom::SetMatrixAbsolute (MODAMATRIX *, bool)

Changing the geometry's absolute transform.

C++
bool SetMatrixAbsolute(MODAMATRIX * pMatrix, bool bStop = false);
Parameters 
Description 
MODAMATRIX * pMatrix 
[in] New geometry's absolute matrix 
bool bStop = false 
[in] indicates if the geometry's parent body must be stopped (by canceling current rotation/translation speed) 

true if the server received the command, false otherwise

SetMatrixAbsolute changes the matrix of the complete geometry's cinematic chain, in order to place it at the specified matrix. The geometry's current matrix become the pivot of the transform and the entire chain is transformed around the pivot by new_geom_matrix*inv(current_geom_matrix). If the geometry is connected directly or indirectly to other bodies, the entire chain is transformed.

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!