![]() |
Gamedev Framework (gf)
0.2.0
A C++11 framework for 2D games
|
Data about the collision between two objects. More...
#include <gf/Collision.h>
Public Attributes | |
Vector2f | normal |
Collision normal. More... | |
float | penetration |
Penetration depth. More... | |
Related Functions | |
(Note that these are not member functions.) | |
bool | collides (const CircF &lhs, const CircF &rhs, Manifold &m) |
Check if two circles collides. More... | |
bool | collides (const RectF &lhs, const CircF &rhs, Manifold &m) |
Check if a rectangle collides with a circle. More... | |
bool | collides (const CircF &lhs, const RectF &rhs, Manifold &m) |
Check if a circle collides with a rectangle. More... | |
bool | collides (const RectF &lhs, const RectF &rhs, Manifold &m) |
Check if two rectangles collides. More... | |
Data about the collision between two objects.
Check if two circles collides.
lhs | First circle |
rhs | Second circle |
m | Data to fill if there is a collision |
Check if a rectangle collides with a circle.
lhs | The rectangle |
rhs | The circle |
m | Data to fill if there is a collision |
Check if a circle collides with a rectangle.
lhs | The circle |
rhs | The rectangle |
m | Data to fill if there is a collision |
Check if two rectangles collides.
lhs | First rectangle |
rhs | Second rectangle |
m | Data to fill if there is a collision |
Vector2f gf::Manifold::normal |
Collision normal.
float gf::Manifold::penetration |
Penetration depth.