Modifier and Type | Field and Description |
---|---|
Rectangle |
Tile.boundary
Full boundary of tile.
|
(package private) Rectangle |
Sprite.boundary
shape used for collision
|
Rectangle |
Tile.edgeBottom
the bottom edge of the tile, if accessible
|
Rectangle |
Tile.edgeLeft
the left edge of the tile, if accessible
|
Rectangle |
Tile.edgeRight
the right edge of the tile, if accessible
|
Rectangle |
Tile.edgeTop
the top edge of the tile, if accessible
|
Rectangle |
Texture.region
A rectangular sub-area of the image to be drawn.
|
Modifier and Type | Method and Description |
---|---|
(package private) Rectangle |
Sprite.getBoundary()
Get boundary shape for this sprite, adjusted according to current position.
|
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.
|
(package private) boolean |
Rectangle.overlaps(Rectangle other)
Determine if this rectangle overlaps with other rectangle.
|