Rotate the object.
This function adds to the current rotation of the object, unlike setRotation which overwrites it. Thus, it is equivalent to the following code:
object.setRotation(object.getRotation() + angle);
angle |
Angle of rotation, in degrees |