A Namespace that contains functions for the collision detection. More...
Functions | |
bool | collisionRectRectDetection (JAM_Vec2 positionA, JAM_Vec2 dimensionsA, JAM_Vec2 positionB, JAM_Vec2 dimensionsB) |
bool | collisionCircleCircleDetection (JAM_Vec2 positionA, float radiusA, JAM_Vec2 positionB, float radiusB) |
A Namespace that contains functions for the collision detection.
bool JAM_CollisionDetection::collisionCircleCircleDetection | ( | JAM_Vec2 | positionA, |
float | radiusA, | ||
JAM_Vec2 | positionB, | ||
float | radiusB | ||
) |
CollisionDetection between two circles.
positionA | The position of the first circle. |
radiusA | The radius of the first circle. |
positionB | The position of the second circle. |
radiusB | The radius of the second circle. |
bool JAM_CollisionDetection::collisionRectRectDetection | ( | JAM_Vec2 | positionA, |
JAM_Vec2 | dimensionsA, | ||
JAM_Vec2 | positionB, | ||
JAM_Vec2 | dimensionsB | ||
) |
CollisionDetection between two rectangles.
positionA | The position of the first rectangle. |
dimensionsA | The dimensions of the first rectangle. |
positionB | The position of the second rectangle. |
dimensionsB | The dimensions of the second rectangle. |