Xors3d Engine
Local transformation

Functions

BBDECL void BBCALL xEntityBodyLocalPosition (Entity *entity, float x, float y, float z)
 Sets a local position of the entity's body.
BBDECL void BBCALL xEntityBodyLocalRotation (Entity *entity, float pitch, float yaw, float roll)
 Sets a local rotation of the entity's body.
BBDECL void BBCALL xEntityBodyLocalScale (Entity *entity, float x, float y, float z)
 Sets a local scale of the entity's body.

Function Documentation

BBDECL void BBCALL xEntityBodyLocalPosition ( Entity *  entity,
float  x,
float  y,
float  z 
)

Sets a local position of the entity's body.

This function is useful in case the automatic entity-body centering doesn't fit your needs.

Parameters:
entityEntity handle
xX coordinate of the new position
yY coordinate of the new position
zZ coordinate of the new position
BBDECL void BBCALL xEntityBodyLocalRotation ( Entity *  entity,
float  pitch,
float  yaw,
float  roll 
)

Sets a local rotation of the entity's body.

This function is useful in case the automatic entity-body centering doesn't fit your needs.

Parameters:
entityEntity handle
pitchNew pitch angle
yawNew yaw angle
rollNew roll angle
BBDECL void BBCALL xEntityBodyLocalScale ( Entity *  entity,
float  x,
float  y,
float  z 
)

Sets a local scale of the entity's body.

This function is useful in case the automatic entity-body scaling doesn't fit your needs.

Note:
Local scale is relative to the entity's scale. E.g. setting a local body scale to (2.0; 2.0; 2.0) will make the body twice bigger than the entity no matter what is entity's own scale.
Parameters:
entityEntity handle
xScale along X axis
yScale along Y axis
zScale along Z axis