FlixelAngleable
View sourceinterface
org.flixelgdx.functional.FlixelAngleable
public interface FlixelAngleable
Something with a rotation angle in degrees that angle tweens and motion integration can drive.
See Also: FlixelObject
Methods
getAngle()
public float getAngle()
The angle in degrees of this object. Does not affect axis-aligned collision on FlixelObject.
Returns: The current angle in degrees.
setAngle(float)
public void setAngle(float degrees)
Sets the rotation angle in degrees.
Parameters:
| Name | Description |
|---|---|
degrees | The new angle in degrees. |
changeAngle(float)
public void changeAngle(float deltaDegrees)
Adds deltaDegrees to the current rotation angle.
Parameters:
| Name | Description |
|---|---|
deltaDegrees | Degrees to add (may be negative). |