| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private Vector2 | |
| public static final int | |
| public static final int | |
| private Vector2 | |
| public static final int | |
| public float[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Vector2 | |
| public Vector2 | |
| public float | |
| public Vector2 | |
| public void | |
| public void | |
| public void |
| COS | back to summary |
|---|---|
| public static final int COS | |
| orientation | back to summary |
|---|---|
| private Vector2 orientation | |
| POS_X | back to summary |
|---|---|
| public static final int POS_X | |
| POS_Y | back to summary |
|---|---|
| public static final int POS_Y | |
| position | back to summary |
|---|---|
| private Vector2 position | |
| SIN | back to summary |
|---|---|
| public static final int SIN | |
| vals | back to summary |
|---|---|
| public float[] vals | |
| Transform | back to summary |
|---|---|
| public Transform() | |
| Transform | back to summary |
|---|---|
| public Transform(Vector2 position, float angle) Constructs a new Transform instance with the given position and angle
| |
| Transform | back to summary |
|---|---|
| public Transform(Vector2 position, Vector2 orientation) Constructs a new Transform instance with the given position and orientation | |
| getOrientation | back to summary |
|---|---|
public Vector2 getOrientation()
| |
| getPosition | back to summary |
|---|---|
public Vector2 getPosition()
| |
| getRotation | back to summary |
|---|---|
| public float getRotation() | |
| mul | back to summary |
|---|---|
| public Vector2 mul(Vector2 v) Transforms the given vector by this transform
| |
| setOrientation | back to summary |
|---|---|
| public void setOrientation(Vector2 orientation) Set where the body should "look at" | |
| setPosition | back to summary |
|---|---|
| public void setPosition(Vector2 pos) Sets the position of this transform
| |
| setRotation | back to summary |
|---|---|
| public void setRotation(float angle) Sets the rotation of this transform
| |