|
Untold Engine
Beta v0.0.16
docs
|
The 4DCollisionAlgorithm is a virtual class in charge of implementing the algorithm used during a collision. More...
Inherits U4DEngine::U4DCollisionDetection.
Inherited by U4DEngine::U4DGJKAlgorithm.
Public Member Functions | |
| U4DCollisionAlgorithm () | |
| Constructor for the class. | |
| virtual | ~U4DCollisionAlgorithm () |
| Destructor for the class. | |
| virtual bool | collision (U4DDynamicAction *uAction1, U4DDynamicAction *uAction2, float dt) |
| Method with returns true if a collision between two 3D entities have occurred. More... | |
| virtual std::vector< SIMPLEXDATA > | getCurrentSimpleStruct () |
| Method which returns the currect SIMPLEXDATA structure. More... | |
| virtual U4DPoint3n | getClosestPointToOrigin () |
| Method which returns the closest 3D point to the origin. More... | |
| virtual U4DPoint3n | getClosestCollisionPoint () |
| Method which returns the closest collision point. More... | |
| virtual U4DVector3n | getContactCollisionNormal () |
| Method which returns the contact collision normal vector. More... | |
Public Member Functions inherited from U4DEngine::U4DCollisionDetection | |
| U4DCollisionDetection () | |
| Constructor for class. | |
| virtual | ~U4DCollisionDetection () |
| Destructor for class. | |
| virtual void | determineCollisionManifold (U4DDynamicAction *uAction1, U4DDynamicAction *uAction2, std::vector< SIMPLEXDATA > uQ) |
| Method which determines the collision manifold. More... | |
| SIMPLEXDATA | calculateSupportPointInDirection (U4DBoundingVolume *uBoundingVolume1, U4DBoundingVolume *uBoundingVolume2, U4DVector3n &uDirection) |
| Method which computes the supporting point in a given direction. More... | |
| U4DPoint3n | determineClosestPointOnSimplexToPoint (U4DPoint3n &uPoint, std::vector< SIMPLEXDATA > uQ) |
| Method which determines the closest 3D point on a simplex to a 3D point. More... | |
| std::vector< float > | determineBarycentricCoordinatesInSimplex (U4DPoint3n &uClosestPointToOrigin, std::vector< SIMPLEXDATA > uQ) |
| Method which determines the Barycentric coordinates in a Simplex. More... | |
The 4DCollisionAlgorithm is a virtual class in charge of implementing the algorithm used during a collision.
|
inlinevirtual |
Method with returns true if a collision between two 3D entities have occurred.
| uAction1 | 3D model entity |
| uAction2 | 3D model entity |
| dt | Time-step value |
Reimplemented from U4DEngine::U4DCollisionDetection.
Reimplemented in U4DEngine::U4DGJKAlgorithm.
|
inlinevirtual |
Method which returns the closest collision point.
Reimplemented in U4DEngine::U4DGJKAlgorithm.
|
inlinevirtual |
Method which returns the closest 3D point to the origin.
Reimplemented in U4DEngine::U4DGJKAlgorithm.
|
inlinevirtual |
Method which returns the contact collision normal vector.
Reimplemented in U4DEngine::U4DGJKAlgorithm.
|
inlinevirtual |
Method which returns the currect SIMPLEXDATA structure.
Reimplemented in U4DEngine::U4DGJKAlgorithm.