Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2CollisionDetection Struct Reference

#include <d2CollisionDetection.h>

Static Public Member Functions

static bool IsColliding (d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
 
static bool IsCollidingCircleCircle (d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
 
static bool IsCollidingPolygonPolygon (d2Body *a, d2Body *b, std::vector< d2Contact > &contacts)
 
static bool IsCollidingPolygonCircle (d2Body *polygon, d2Body *circle, std::vector< d2Contact > &contacts)
 

Member Function Documentation

◆ IsColliding()

static bool d2CollisionDetection::IsColliding ( d2Body * a,
d2Body * b,
std::vector< d2Contact > & contacts )
static

◆ IsCollidingCircleCircle()

static bool d2CollisionDetection::IsCollidingCircleCircle ( d2Body * a,
d2Body * b,
std::vector< d2Contact > & contacts )
static

◆ IsCollidingPolygonCircle()

static bool d2CollisionDetection::IsCollidingPolygonCircle ( d2Body * polygon,
d2Body * circle,
std::vector< d2Contact > & contacts )
static

◆ IsCollidingPolygonPolygon()

static bool d2CollisionDetection::IsCollidingPolygonPolygon ( d2Body * a,
d2Body * b,
std::vector< d2Contact > & contacts )
static

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