|
MochiEngine
|
Abstract class representing a position in space where a physics shape is. This is meant to be extended and used for checking for collisions between different types of shapes. More...
#include <Shapes.h>
Public Member Functions | |
| Shape (const Vector2f &position) | |
| virtual std::unique_ptr< Shape > | Clone () const =0 |
| virtual bool | IsColliding (const Shape &other) const =0 |
| virtual bool | Collides (const Point &p) const =0 |
| virtual bool | Collides (const Line &l) const =0 |
| virtual bool | Collides (const Circle &c) const =0 |
| virtual bool | Collides (const Rectangle &r) const =0 |
Public Attributes | |
| Vector2f | Position |
Abstract class representing a position in space where a physics shape is. This is meant to be extended and used for checking for collisions between different types of shapes.
Check Shape Collision Methods for a list of collision methods.