public class VelocityComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.math.Vector2 |
speed |
| Constructor and Description |
|---|
VelocityComponent() |
| Modifier and Type | Method and Description |
|---|---|
static VelocityComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
VelocityComponent |
setSpeed(float x,
float y) |
public static VelocityComponent create(com.badlogic.ashley.core.Engine engine)
public VelocityComponent setSpeed(float x, float y)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable