public class OscillationComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
boolean |
isClockwise |
float |
maxRotation |
float |
minRotation |
float |
rotationSpeed |
| Constructor and Description |
|---|
OscillationComponent() |
| Modifier and Type | Method and Description |
|---|---|
static OscillationComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
OscillationComponent |
setClockwise(boolean isClockwise) |
OscillationComponent |
setMaximumRotation(float maxRot) |
OscillationComponent |
setMinimumRotation(float minRot) |
OscillationComponent |
setSpeed(float rotSpeed) |
public float minRotation
public float maxRotation
public float rotationSpeed
public boolean isClockwise
public static OscillationComponent create(com.badlogic.ashley.core.Engine engine)
public OscillationComponent setMinimumRotation(float minRot)
public OscillationComponent setMaximumRotation(float maxRot)
public OscillationComponent setSpeed(float rotSpeed)
public OscillationComponent setClockwise(boolean isClockwise)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable