Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2CollisionDetection.h
Go to the documentation of this file.
1#ifndef COLLISIONDETECTION_H
2#define COLLISIONDETECTION_H
3
4#include "d2Body.h"
5#include "d2Contact.h"
6
8{
9 static bool IsColliding(d2Body *a, d2Body *b, std::vector<d2Contact> &contacts);
10
11 static bool IsCollidingCircleCircle(d2Body *a, d2Body *b, std::vector<d2Contact> &contacts);
12
13 static bool IsCollidingPolygonPolygon(d2Body *a, d2Body *b, std::vector<d2Contact> &contacts);
14
15 static bool IsCollidingPolygonCircle(d2Body *polygon, d2Body *circle, std::vector<d2Contact> &contacts);
16};
17
18#endif
A class representing a 2D rigid body.
Definition d2Body.h:28
Definition d2CollisionDetection.h:8
static bool IsCollidingPolygonPolygon(d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
static bool IsCollidingCircleCircle(d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
static bool IsColliding(d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
static bool IsCollidingPolygonCircle(d2Body *polygon, d2Body *circle, std::vector< d2Contact > &contacts)