public class RotationComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
boolean |
hasTargetRotation |
float |
rotationSpeed |
float |
targetRotation |
| Constructor and Description |
|---|
RotationComponent() |
| Modifier and Type | Method and Description |
|---|---|
static RotationComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
RotationComponent |
setHasTargetRotation(boolean hasTarget) |
RotationComponent |
setRotationSpeed(float speed) |
RotationComponent |
setTargetRotation(float target) |
public float rotationSpeed
public boolean hasTargetRotation
public float targetRotation
public static RotationComponent create(com.badlogic.ashley.core.Engine engine)
public RotationComponent setRotationSpeed(float speed)
public RotationComponent setTargetRotation(float target)
public RotationComponent setHasTargetRotation(boolean hasTarget)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable