setRotation


Description:

public void setRotation (float angle)

set the orientation of the object

This function completely overwrites the previous rotation. See the rotate function to add an angle based on the previous rotation instead. The default rotation of a transformable object is 0.

Parameters:

angle

New rotation, in degrees

See also:

rotate, getRotation