#include <CollisionDetector.h>
Classes | |
| struct | FunctionMapEntry |
Public Member Functions | |
| CollisionDetector (void) | |
| ~CollisionDetector (void) | |
| unsigned | collide (CollisionData *data, bool inverse=false) |
| unsigned | collide (const CollisionSpace &space1, const CollisionSpace &space2, CollisionData *data, bool inverse=false) |
Static Public Member Functions | |
| static unsigned | sphere_hits_plane (CollisionData *data, bool inverse=false) |
| static unsigned | box_hits_plane (CollisionData *data, bool inverse=false) |
| static unsigned | poly_hits_plane (CollisionData *data, bool inverse=false) |
| static unsigned | sphere_hits_sphere (CollisionData *data, bool inverse=false) |
| static unsigned | box_hits_box (CollisionData *data, bool inverse=false) |
| static unsigned | poly_hits_poly (CollisionData *data, bool inverse=false) |
| static unsigned | sphere_hits_box (CollisionData *data, bool inverse=false) |
| static unsigned | sphere_hits_poly (CollisionData *data, bool inverse=false) |
| static unsigned | box_hits_poly (CollisionData *data, bool inverse=false) |
| static unsigned | point_hits_plane (const ml7::Vector2 &v1, const ml7::Vector2 &n1, const geometry2::CollisionPlane &plane2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | point_hits_sphere (const ml7::Vector2 &v1, const ml7::Vector2 &n1, const geometry2::CollisionSphere &sphere2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | point_hits_box (const ml7::Vector2 &v1, const ml7::Vector2 &n1, const geometry2::CollisionBox &box2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | point_hits_poly (const ml7::Vector2 &v1, const ml7::Vector2 &n1, const geometry2::CollisionPoly &poly2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | sphere_hits_plane (const geometry2::CollisionSphere &sphere1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionPlane &plane2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | box_hits_plane (const geometry2::CollisionBox &box1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionPlane &plane2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | poly_hits_plane (const geometry2::CollisionPoly &poly1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionPlane &plane2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | sphere_hits_sphere (const geometry2::CollisionSphere &sphere1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionSphere &sphere2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | box_hits_box (const geometry2::CollisionBox &box1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionBox &box2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | poly_hits_poly (const geometry2::CollisionPoly &poly1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionPoly &poly2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | sphere_hits_box (const geometry2::CollisionSphere &sphere1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionBox &box2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | sphere_hits_poly (const geometry2::CollisionSphere &sphere1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionPoly &poly2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| static unsigned | box_hits_poly (const geometry2::CollisionBox &box1, const ml7::Matrix2x3 &transform1, const geometry2::CollisionPoly &poly2, const ml7::Matrix2x3 &transform2, CollisionData *data, bool inverse=false) |
| bl7::rigidbodies2::CollisionDetector::CollisionDetector | ( | void | ) |
Default constructor.
| bl7::rigidbodies2::CollisionDetector::~CollisionDetector | ( | void | ) |
Destructor.
| unsigned bl7::rigidbodies2::CollisionDetector::box_hits_box | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (two boxes).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (two boxes).
| unsigned bl7::rigidbodies2::CollisionDetector::box_hits_box | ( | const geometry2::CollisionBox & | box1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionBox & | box2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides two boxes.
| unsigned bl7::rigidbodies2::CollisionDetector::box_hits_plane | ( | const geometry2::CollisionBox & | box1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionPlane & | plane2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a box with a plane.
Collides a box defined by its vertices with a plane defined by its normal and distance from origin.
| unsigned bl7::rigidbodies2::CollisionDetector::box_hits_plane | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (box with plane).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (box with plane).
| unsigned bl7::rigidbodies2::CollisionDetector::box_hits_poly | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (box with poly).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (box with poly).
| unsigned bl7::rigidbodies2::CollisionDetector::box_hits_poly | ( | const geometry2::CollisionBox & | box1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionPoly & | poly2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a box with a poly.
| unsigned bl7::rigidbodies2::CollisionDetector::collide | ( | const CollisionSpace & | space1, | |
| const CollisionSpace & | space2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure depending on their geometry covered by certain collision spaces.
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure depending on their geometry covered by certain collision spaces.
| unsigned bl7::rigidbodies2::CollisionDetector::collide | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure.
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure.
| unsigned bl7::rigidbodies2::CollisionDetector::point_hits_box | ( | const ml7::Vector2 & | v1, | |
| const ml7::Vector2 & | n1, | |||
| const geometry2::CollisionBox & | box2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a point in world space with a box.
| unsigned bl7::rigidbodies2::CollisionDetector::point_hits_plane | ( | const ml7::Vector2 & | v1, | |
| const ml7::Vector2 & | n1, | |||
| const geometry2::CollisionPlane & | plane2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a point in world space with a plane.
| unsigned bl7::rigidbodies2::CollisionDetector::point_hits_poly | ( | const ml7::Vector2 & | v1, | |
| const ml7::Vector2 & | n1, | |||
| const geometry2::CollisionPoly & | poly2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a point in world space with a poly.
| unsigned bl7::rigidbodies2::CollisionDetector::point_hits_sphere | ( | const ml7::Vector2 & | v1, | |
| const ml7::Vector2 & | n1, | |||
| const geometry2::CollisionSphere & | sphere2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a point in world space with a sphere.
| unsigned bl7::rigidbodies2::CollisionDetector::poly_hits_plane | ( | const geometry2::CollisionPoly & | poly1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionPlane & | plane2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a poly with a plane.
Collides a poly defined by its vertices with a plane defined by its normal and distance from origin.
| unsigned bl7::rigidbodies2::CollisionDetector::poly_hits_plane | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (poly with plane).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (poly with plane).
| unsigned bl7::rigidbodies2::CollisionDetector::poly_hits_poly | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (two polys).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (two polys).
| unsigned bl7::rigidbodies2::CollisionDetector::poly_hits_poly | ( | const geometry2::CollisionPoly & | poly1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionPoly & | poly2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides two polys.
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_box | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (sphere with box).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (sphere with box).
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_box | ( | const geometry2::CollisionSphere & | sphere1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionBox & | box2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a sphere with a box.
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_plane | ( | const geometry2::CollisionSphere & | sphere1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionPlane & | plane2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a sphere with a plane.
Collides a sphere defined by its center point and radius with a plane defined by its normal and distance from origin.
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_plane | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (sphere with plane).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (sphere with plane).
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_poly | ( | const geometry2::CollisionSphere & | sphere1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionPoly & | poly2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides a sphere with a poly.
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_poly | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (sphere with poly).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (sphere with poly).
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_sphere | ( | CollisionData * | data, | |
| bool | inverse = false | |||
| ) | [static] |
Generates contacts for the geometry of the two ridid bodies contained in the collision data structure (two spheres).
Generates contacts for the geometry of the two rigid bodies contained in the collision data structure (two spheres).
| unsigned bl7::rigidbodies2::CollisionDetector::sphere_hits_sphere | ( | const geometry2::CollisionSphere & | sphere1, | |
| const ml7::Matrix2x3 & | transform1, | |||
| const geometry2::CollisionSphere & | sphere2, | |||
| const ml7::Matrix2x3 & | transform2, | |||
| CollisionData * | data, | |||
| bool | inverse = false | |||
| ) | [static] |
Collides two spheres.
Collides two spheres defined by their center points and radii.
1.7.1