public abstract class Collider
extends java.lang.Object
| Constructor and Description | 
|---|
Collider()
Creates a collider placed at (0,0). 
 | 
Collider(float x,
        float y)
Creates a collider placed at the desired (x,y) coordinates 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Vector2 | 
getPosition()
Returns the position of the collider. 
 | 
abstract boolean | 
insideCamera(com.badlogic.gdx.graphics.OrthographicCamera cam)
Returns true if this collider is inside the camera. 
 | 
abstract boolean | 
intersects(Collider r)
Returns true if this collider intersects with another collider 
 | 
abstract boolean | 
intersects(Vector2 point)
Returns true if this point is within the collider. 
 | 
void | 
setPosition(float x,
           float y)
Sets the position of the collider. 
 | 
public Collider()
public Collider(float x,
        float y)
public void setPosition(float x,
               float y)
public Vector2 getPosition()
public abstract boolean intersects(Collider r)
public abstract boolean intersects(Vector2 point)
public abstract boolean insideCamera(com.badlogic.gdx.graphics.OrthographicCamera cam)