hx3d
1
2D/3D Simple Game Framework
|
2D physics components More...
Namespaces | |
colliders | |
2D collider types | |
Classes | |
struct | Attractor |
Physical gravity attractor. More... | |
class | Collider |
Physical collider. More... | |
class | CollisionListener |
Collision listener on begin/during/end. More... | |
class | CollisionMatrix |
Collision matrix with masks and category. More... | |
struct | GlobalAttractor |
Global attractor. More... | |
class | Manifold |
Contact manifold definition. More... | |
struct | Mass |
Physical mass data. More... | |
struct | Material |
Physical material: friction & restitution. More... | |
struct | PointAttractor |
Point attractor. More... | |
class | World |
Physical world. Manages colliders and attractors. More... | |
struct | ZoneAttractor |
Zone attractor. More... | |
Functions | |
bool | checkCollisions (Manifold &m, Ptr< colliders::Circle > a, Ptr< colliders::Circle > b) |
Collision test between two circles. More... | |
bool | checkCollisions (Manifold &m, Ptr< colliders::Polygon > a, Ptr< colliders::Circle > b) |
Collision test between polygon and circle. More... | |
bool | checkCollisions (Manifold &m, Ptr< colliders::Circle > a, Ptr< colliders::Polygon > b) |
Collision test between circle and polygon. More... | |
bool | checkCollisions (Manifold &m, Ptr< colliders::Polygon > a, Ptr< colliders::Polygon > b) |
Collision test between two polygons. More... | |
bool | operator< (const Manifold &m1, const Manifold &m2) |
Compare two manifolds using their penetration coefficients. | |
2D physics components
bool hx3d::physics2d::checkCollisions | ( | Manifold & | m, |
Ptr< colliders::Circle > | a, | ||
Ptr< colliders::Circle > | b | ||
) |
Collision test between two circles.
m | Manifold |
a | First circle |
b | Second circle |
Definition at line 169 of file collisions.cpp.
bool hx3d::physics2d::checkCollisions | ( | Manifold & | m, |
Ptr< colliders::Polygon > | a, | ||
Ptr< colliders::Circle > | b | ||
) |
Collision test between polygon and circle.
m | Manifold |
a | Polygon |
b | Circle |
Definition at line 198 of file collisions.cpp.
bool hx3d::physics2d::checkCollisions | ( | Manifold & | m, |
Ptr< colliders::Circle > | a, | ||
Ptr< colliders::Polygon > | b | ||
) |
Collision test between circle and polygon.
m | Manifold |
a | Circle |
b | Polygon |
Definition at line 207 of file collisions.cpp.
bool hx3d::physics2d::checkCollisions | ( | Manifold & | m, |
Ptr< colliders::Polygon > | a, | ||
Ptr< colliders::Polygon > | b | ||
) |
Collision test between two polygons.
m | Manifold |
a | First polygon |
b | Second polygon |
Definition at line 87 of file collisions.cpp.