Data about the collision between two objects.
More...
#include <gf/Collision.h>
|
(Note that these are not member functions.)
|
bool | collides (const CircF &lhs, const CircF &rhs, Penetration &p) |
| Check if two circles collides. More...
|
|
bool | collides (const RectF &lhs, const CircF &rhs, Penetration &p) |
| Check if a rectangle collides with a circle. More...
|
|
bool | collides (const CircF &lhs, const RectF &rhs, Penetration &p) |
| Check if a circle collides with a rectangle. More...
|
|
bool | collides (const RectF &lhs, const RectF &rhs, Penetration &p) |
| Check if two rectangles collides. More...
|
|
bool | collides (const Polygon &lhs, const Polygon &rhs, Penetration &p) |
| Check if two polygons collides. More...
|
|
Data about the collision between two objects.
- See also
- How to Create a Custom Physics Engine
Check if two circles collides.
- Parameters
-
lhs | First circle |
rhs | Second circle |
p | Data to fill if there is a collision |
- Returns
- True if there is a collision
Check if a rectangle collides with a circle.
- Parameters
-
lhs | The rectangle |
rhs | The circle |
p | Data to fill if there is a collision |
- Returns
- True if there is a collision
Check if a circle collides with a rectangle.
- Parameters
-
lhs | The circle |
rhs | The rectangle |
p | Data to fill if there is a collision |
- Returns
- True if there is a collision
Check if two rectangles collides.
- Parameters
-
lhs | First rectangle |
rhs | Second rectangle |
p | Data to fill if there is a collision |
- Returns
- True if there is a collision
Check if two polygons collides.
- Parameters
-
lhs | First polygon |
rhs | Second polygon |
p | Data to fill if there is a collision |
- Returns
- True if there is a collision
float gf::Penetration::depth |