Package | Description |
---|---|
com.jonathan.survivor.entity | |
com.jonathan.survivor.math |
Modifier and Type | Method and Description |
---|---|
<T extends Collider> |
GameObject.getCollider()
Returns the collider used by the gameObject for collisions.
|
Modifier and Type | Method and Description |
---|---|
void |
GameObject.setCollider(Collider c)
Sets the collider used by the gameObject for collisions.
|
Modifier and Type | Class and Description |
---|---|
class |
Rectangle |
Modifier and Type | Method and Description |
---|---|
boolean |
Rectangle.intersects(Collider c)
Returns true if this rectangle intersects with another collider
|
boolean |
Line.intersects(Collider collider)
Returns true if the line intersects with a given collider.
|
abstract boolean |
Collider.intersects(Collider r)
Returns true if this collider intersects with another collider
|