The U4DCollisionDetection is in charge of implementing the collision detection algorithm.
More...
Inherited by U4DEngine::U4DCollisionAlgorithm, and U4DEngine::U4DManifoldGeneration.
The U4DCollisionDetection is in charge of implementing the collision detection algorithm.
◆ calculateSupportPointInDirection()
Method which computes the supporting point in a given direction.
- Parameters
-
uBoundingVolume1 | Bounding volume of a 3D model entity |
uBoundingVolume2 | Bounding volume of a 3D model entity |
uDirection | 3D vector direction to compute the supporting points |
- Returns
- Returns the supporting point as a SIMPLEXDATA object
◆ collision()
◆ determineBarycentricCoordinatesInSimplex()
std::vector< float > U4DEngine::U4DCollisionDetection::determineBarycentricCoordinatesInSimplex |
( |
U4DPoint3n & |
uClosestPointToOrigin, |
|
|
std::vector< SIMPLEXDATA > |
uQ |
|
) |
| |
Method which determines the Barycentric coordinates in a Simplex.
- Parameters
-
uClosestPointToOrigin | 3D point closest to the origin |
uQ | Simplex data |
- Returns
- Returns the barycentric coordinates in a simplex
◆ determineClosestPointOnSimplexToPoint()
Method which determines the closest 3D point on a simplex to a 3D point.
- Parameters
-
uPoint | 3D point to compute clostest 3D point |
uQ | Simplex data |
- Returns
- Returns 3D point closest to the simplex
◆ determineCollisionManifold()
Method which determines the collision manifold.
- Parameters
-
uAction1 | 3D model entity |
uAction2 | 3D model entity |
uQ | Time-step value |