Skip to main content

FlixelAngleable

View source

interface

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:

NameDescription
degreesThe new angle in degrees.

changeAngle(float)

public void changeAngle(float deltaDegrees)

Adds deltaDegrees to the current rotation angle.

Parameters:

NameDescription
deltaDegreesDegrees to add (may be negative).