Modifier and Type | Field and Description |
---|---|
(package private) Vector2 |
Physics.accelerationVector
Acceleration (rate of chance of velocity) of object.
|
(package private) Vector2 |
Physics.positionVector
Position of object.
|
(package private) Vector2 |
Physics.velocityVector
Velocity (rate of change of position) of object.
|
Modifier and Type | Method and Description |
---|---|
(package private) Vector2 |
Rectangle.getMinTranslationVector(Rectangle other)
Assuming that this rectangle and other rectangle overlap,
calculate the minimum length vector required to translate this rectangle
so that there is no longer any overlap between them.
|
Vector2 |
Input.getMousePosition()
Return current position of mouse on game canvas.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Vector2> |
TileMap.getSymbolPositionList(java.lang.String symbol)
Return the game world coordinates (in pixels) of every occurrence
of
symbol in map data. |
Modifier and Type | Method and Description |
---|---|
void |
Vector2.addVector(Vector2 other)
Add the values of the coordinates of other vector
to the coordinates of this vector.
|
int |
Vector2.compareTo(Vector2 other)
Required method from Comparable interface; used to sort collections of Vector2 objects by length, particularly for use in determining the minimum (shortest) translation vector for use in resolving collisions with solid objects.
|