[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.0" ) ]
public void set_z_rotation_from_gravity (double angle, Gravity gravity)
Warning: set_z_rotation_from_gravity is deprecated since 1.12.
Sets the rotation angle of this around the Z axis using the center point specified as a compass point.
Use set_rotation_angle and set_pivot_point instead.
For example to rotate such that the center of the actor remains static you can use CENTER. If the actor changes size the center point will move accordingly.
| this |
a Actor |
| angle |
the angle of rotation |
| gravity |
the center point of the rotation |