![]() |
Gamedev Framework (gf)
0.5.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 | depth |
| Penetration depth. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| bool | collides (const CircF &lhs, const Transform &lhsTrans, const CircF &rhs, const Transform &rhsTrans, Penetration &p) |
| Check if two circles collides. More... | |
| 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 CircF &lhs, const Transform &lhsTrans, const Polygon &rhs, const Transform &rhsTrans, Penetration &p) |
| Check if a circle collides with a polygon. More... | |
| bool | collides (const CircF &lhs, const Polygon &rhs, Penetration &p) |
| Check if a circle collides with a polygon. More... | |
| bool | collides (const Polygon &lhs, const Transform &lhsTrans, const CircF &rhs, const Transform &rhsTrans, Penetration &p) |
| Check if a polygon collides with a circle. More... | |
| bool | collides (const Polygon &lhs, const CircF &rhs, Penetration &p) |
| Check if a polygon collides with a circle. More... | |
| bool | collides (const Polygon &lhs, const Transform &lhsTrans, const Polygon &rhs, const Transform &rhsTrans, Penetration &p) |
| Check if two polygons 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.
|
related |
Check if two circles collides.
| lhs | First circle |
| lhsTrans | Transformation of the first circle |
| rhs | Second circle |
| rhsTrans | Transformation of the second circle |
| p | Data to fill if there is a collision |
|
related |
Check if two circles collides.
| lhs | First circle |
| rhs | Second circle |
| p | Data to fill if there is a collision |
|
related |
Check if a rectangle collides with a circle.
| lhs | The rectangle |
| rhs | The circle |
| p | Data to fill if there is a collision |
|
related |
Check if a circle collides with a rectangle.
| lhs | The circle |
| rhs | The rectangle |
| p | Data to fill if there is a collision |
|
related |
Check if two rectangles collides.
| lhs | First rectangle |
| rhs | Second rectangle |
| p | Data to fill if there is a collision |
|
related |
Check if a circle collides with a polygon.
| lhs | The circle |
| lhsTrans | Transformation of the circle |
| rhs | The polygon |
| rhsTrans | Transformation of the polygon |
| p | Data to fill if there is a collision |
|
related |
Check if a circle collides with a polygon.
| lhs | The circle |
| rhs | The polygon |
| p | Data to fill if there is a collision |
|
related |
Check if a polygon collides with a circle.
| lhs | The polygon |
| lhsTrans | Transformation of the polygon |
| rhs | The circle |
| rhsTrans | Transformation of the circle |
| p | Data to fill if there is a collision |
|
related |
Check if a polygon collides with a circle.
| lhs | The polygon |
| rhs | The circle |
| p | Data to fill if there is a collision |
|
related |
Check if two polygons collides.
| lhs | First polygon |
| lhsTrans | Transformation of the first polygon |
| rhs | Second polygon |
| rhsTrans | Transformation of the second polygon |
| p | Data to fill if there is a collision |
|
related |
Check if two polygons collides.
| lhs | First polygon |
| rhs | Second polygon |
| p | Data to fill if there is a collision |
| float gf::Penetration::depth |
Penetration depth.
| Vector2f gf::Penetration::normal |
Collision normal.
1.8.13