public interface CollisionShape extends Positionable, Sizeable
Shapes| Modifier and Type | Method and Description | 
|---|---|
boolean | 
contains(Shape shape)
Returns if this  
CollisionShape contains the specified Shape | 
boolean | 
contains(com.badlogic.gdx.math.Vector2 point)
Returns if a  
Vector2 is contained inside this CollisionShape | 
void | 
forceTo(float x,
       float y)
Sets the current x and y coordinate to the specified x and y and force updates the
 rendering position to match 
 | 
Shape | 
getShape()
Returns the underlying  
Shape instance | 
boolean | 
intersects(LineSegment lineSegment)
Returns if this  
CollisionShape intersects the specified
 LineSegment | 
boolean | 
intersects(Shape shape)
Returns if this  
CollisionShape intersects a Shape | 
boolean | 
intersectsLineSegment(float x1,
                     float y1,
                     float x2,
                     float y2)
Returns if this  
CollisionShape intersects a line segment | 
boolean | 
intersectsLineSegment(com.badlogic.gdx.math.Vector2 pointA,
                     com.badlogic.gdx.math.Vector2 pointB)
Returns if this  
CollisionShape intersects a line segment | 
void | 
preUpdate()
This method needs to be called at the start of each frame
 before any changes are made to this object 
 | 
addPostionChangeListener, getDistanceTo, getDistanceTo, getDistanceTo, getId, getRenderX, getRenderY, getX, getY, moveTowards, moveTowards, removePositionChangeListener, setX, setYinterpolate, updatevoid preUpdate()
void forceTo(float x,
             float y)
x - The x coordinate to sety - The y coordinate to setboolean contains(Shape shape)
CollisionShape contains the specified Shapeshape - The Shape to checkShape is inside this CollisionShapeboolean contains(com.badlogic.gdx.math.Vector2 point)
Vector2 is contained inside this CollisionShapepoint - The Vector2 to checkCollisionShape contains the specified Vector2boolean intersects(Shape shape)
CollisionShape intersects a Shapeshape - The Shape to checkCollisionShape intersects the specified Shapeboolean intersects(LineSegment lineSegment)
CollisionShape intersects the specified
 LineSegmentlineSegment - The LineSegment to checkCollisionShape intersects the LineSegmentboolean intersectsLineSegment(com.badlogic.gdx.math.Vector2 pointA,
                              com.badlogic.gdx.math.Vector2 pointB)
CollisionShape intersects a line segmentpointA - The first point in the line segmentpointB - The second point in the line segmentCollisionShape intersects the line segmentboolean intersectsLineSegment(float x1,
                              float y1,
                              float x2,
                              float y2)
CollisionShape intersects a line segmentx1 - The x coordinate of the first pointy1 - The y coordinate of the first pointx2 - The x coordinate of the second pointy2 - The y coordinate of the second pointCollisionShape intersects the line segment