|
#ifndef WORLD_SPACE
#define WORLD_SPACE 0
#endif
#define OBJECT_SPACE (WORLD_SPACE+1)
Turns an object around its center.
Use STATE_object_set_rotation_center() to change the object center
space flag can be OBJECT_SPACE or WORLD_SPACE
Remarks:
Note that there are several functions for rotating an object. Here are some of them
and help when to use what.
1) Rotation around the object center
If you need to turn/rotate an object around its center (for example a propeller of an helicopter)
then use one STATE_object_rotate_x/y/z()
2) If you need to rotate an object around a point in the object body
for example to turn a door around its hinge then use
STATE_object_rotate_x/y/z() together with STATE_object_set_rotation_center()
3) If you need to turn an object around a point in the world.
for example earth circling around the sun.
in this case use STATE_object_rotate_around_point()
See also:
STATE_object_rotate_x(), STATE_object_rotate_y(), STATE_object_rotate_z()
STATE_object_rotate_x_radians(), STATE_object_rotate_y_radians(), STATE_object_rotate_z_radians()
STATE_object_rotate_around_point()
STATE_object_set_rotation_center()
STATE_object_rotate_including_sons()
|