MochiEngine
Loading...
Searching...
No Matches
Mochi::Physics::Shape Struct Referenceabstract

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>

Inheritance diagram for Mochi::Physics::Shape:
Mochi::Physics::Circle Mochi::Physics::Line Mochi::Physics::Point Mochi::Physics::Rectangle

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

Detailed Description

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.


The documentation for this struct was generated from the following file: