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
7
struct
d2CollisionDetection
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
d2Body
A class representing a 2D rigid body.
Definition
d2Body.h:28
d2Body.h
d2Contact.h
d2CollisionDetection
Definition
d2CollisionDetection.h:8
d2CollisionDetection::IsCollidingPolygonPolygon
static bool IsCollidingPolygonPolygon(d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
d2CollisionDetection::IsCollidingCircleCircle
static bool IsCollidingCircleCircle(d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
d2CollisionDetection::IsColliding
static bool IsColliding(d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
d2CollisionDetection::IsCollidingPolygonCircle
static bool IsCollidingPolygonCircle(d2Body *polygon, d2Body *circle, std::vector< d2Contact > &contacts)
dura2d
d2CollisionDetection.h
Generated by
1.12.0