public class MoveToComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
boolean |
hasArrived |
float |
speed |
com.badlogic.gdx.math.Vector3 |
target |
| Constructor and Description |
|---|
MoveToComponent() |
| Modifier and Type | Method and Description |
|---|---|
static MoveToComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
MoveToComponent |
setArrived(boolean hasArrived) |
MoveToComponent |
setSpeed(float spd) |
MoveToComponent |
setTarget(float x,
float y) |
MoveToComponent |
setTarget(float x,
float y,
float z) |
public com.badlogic.gdx.math.Vector3 target
public float speed
public boolean hasArrived
public static MoveToComponent create(com.badlogic.ashley.core.Engine engine)
public MoveToComponent setTarget(float x, float y, float z)
public MoveToComponent setTarget(float x, float y)
public MoveToComponent setSpeed(float spd)
public MoveToComponent setArrived(boolean hasArrived)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable