public class TransformComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
boolean |
isHidden |
com.badlogic.gdx.math.Vector2 |
originOffset |
com.badlogic.gdx.math.Vector3 |
position |
float |
rotation |
com.badlogic.gdx.math.Vector2 |
scale |
com.badlogic.gdx.graphics.Color |
tint |
| Constructor and Description |
|---|
TransformComponent() |
| Modifier and Type | Method and Description |
|---|---|
static TransformComponent |
create(com.badlogic.ashley.core.Engine engine) |
TransformComponent |
hide() |
void |
reset() |
TransformComponent |
setHidden(boolean isHidin) |
TransformComponent |
setOpacity(float opacity) |
TransformComponent |
setOriginOffset(float x,
float y) |
TransformComponent |
setPosition(float x,
float y) |
TransformComponent |
setPosition(float x,
float y,
float z) |
TransformComponent |
setRotation(float rot) |
TransformComponent |
setScale(float x,
float y) |
TransformComponent |
setTint(com.badlogic.gdx.graphics.Color color) |
TransformComponent |
setTint(float r,
float g,
float b,
float a) |
TransformComponent |
show() |
public final com.badlogic.gdx.math.Vector3 position
public final com.badlogic.gdx.math.Vector2 scale
public com.badlogic.gdx.graphics.Color tint
public float rotation
public boolean isHidden
public com.badlogic.gdx.math.Vector2 originOffset
public static TransformComponent create(com.badlogic.ashley.core.Engine engine)
public TransformComponent setPosition(float x, float y)
public TransformComponent setPosition(float x, float y, float z)
public TransformComponent setOpacity(float opacity)
public TransformComponent setScale(float x, float y)
public TransformComponent setRotation(float rot)
public TransformComponent setTint(com.badlogic.gdx.graphics.Color color)
public TransformComponent setTint(float r, float g, float b, float a)
public TransformComponent setOriginOffset(float x, float y)
public TransformComponent hide()
public TransformComponent show()
public TransformComponent setHidden(boolean isHidin)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable