set_z_rotation_from_gravity


Description:

[ 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.

Note:

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.

Parameters:

this

a Actor

angle

the angle of rotation

gravity

the center point of the rotation




2022 vala-language.org