Namespace containing all the methods to get manifolds from collisions. This is here to separate the logic from the Collider class. Avoids the problem where we don't know if the circle-box collision resolution should be in the CircleCollider class or the box ColliderClass.
More...
|
Manifold | FindCircleCircleManifold (const CircleCollider *a, const Transform *ta, const CircleCollider *b, const Transform *tb) |
| Finds the collision manifold between A and B.
|
|
Manifold | FindCircleBoxManifold (const CircleCollider *a, const Transform *ta, const BoxCollider *b, const Transform *tb) |
| Finds the collision manifold between A and B.
|
|
Manifold | FindBoxCircleManifold (const BoxCollider *a, const Transform *ta, const CircleCollider *b, const Transform *tb) |
| Finds the collision manifold between A and B.
|
|
Manifold | FindBoxBoxManifold (const BoxCollider *a, const Transform *ta, const BoxCollider *b, const Transform *tb) |
| Finds the collision manifold between A and B.
|
|
Manifold | FindAabbAabbManifold (const AabbCollider *a, const Transform *ta, const AabbCollider *b, const Transform *tb) |
| Finds the collision manifold between A and B.
|
|
Manifold | FindAabbCircleManifold (const AabbCollider *a, const Transform *ta, const CircleCollider *b, const Transform *tb) |
| Finds the collision manifold between A and B.
|
|
Manifold | FindCircleAabbManifold (const CircleCollider *a, const Transform *ta, const AabbCollider *b, const Transform *tb) |
| Finds the collision manifold between A and B.
|
|
Vector2 | Support (const Collider *colliderA, const Transform *transformA, const Collider *colliderB, const Transform *transformB, const Vector2 &direction) |
| Support function of the GJK algorithm.
|
|
Manifold | Gjk (const Collider *colliderA, const Transform *transformA, const Collider *colliderB, const Transform *transformB) |
| Finds the manifold between A and B using GJK.
|
|
bool | NextSimplex (const Simplex &points, Vector2 &direction) |
| Finds the next simplex for the GJK algorithm.
|
|
bool | SameDirection (Vector2 direction, Vector2 ao) |
| Finds if both vectors are going in the same direction.
|
|
bool | Line (const Simplex &points, Vector2 &direction) |
| Line case for the NextSimplex function.
|
|
bool | Triangle (const Simplex &points, Vector2 &direction) |
| Triangle case for the NextSimplex function.
|
|
Manifold | Epa (const Simplex &simplex, const Collider *colliderA, const Transform *transformA, const Collider *colliderB, const Transform *transformB) |
| Find the manifold from the last simplex of the GJK algorithm.
|
|
Manifold | Sat (const BoxCollider *colliderA, const Transform *transformA, const BoxCollider *colliderB, const Transform *transformB) |
|
Namespace containing all the methods to get manifolds from collisions. This is here to separate the logic from the Collider class. Avoids the problem where we don't know if the circle-box collision resolution should be in the CircleCollider class or the box ColliderClass.