|
Set the rotation center of the object. The default is the center of the object
Note that the center point is in object space.
Use this function to make a door turn arroun it axis (and not around its center) etc.
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()
|