The U4DCollisionEngine class is in charge of implemeting the collision engine operations.
More...
The U4DCollisionEngine class is in charge of implemeting the collision engine operations.
◆ add()
Add a 3D model to the collision engine.
- Parameters
-
uAction | Pointer to the action to add |
◆ addToBroadPhaseCollisionContainer()
void U4DEngine::U4DCollisionEngine::addToBroadPhaseCollisionContainer |
( |
U4DDynamicAction * |
uAction | ) |
|
Method which adds the 3D entity to the BVH(Boundary Volume Hierarchy) scenegraph.
- Parameters
-
◆ detectBroadPhaseCollisions()
void U4DEngine::U4DCollisionEngine::detectBroadPhaseCollisions |
( |
float |
dt | ) |
|
Method which detects Broad-Phase collision.
- Parameters
-
◆ detectNarrowPhaseCollision()
void U4DEngine::U4DCollisionEngine::detectNarrowPhaseCollision |
( |
float |
dt | ) |
|
Method which detects Narrow-Phase collision.
- Parameters
-
◆ remove()
Remove the 3D model from the collision engine.
- Parameters
-
uAction | Pointer to the action to remove |
◆ setBoundaryVolumeHierarchyManager()
void U4DEngine::U4DCollisionEngine::setBoundaryVolumeHierarchyManager |
( |
U4DBVHManager * |
uBoundaryVolumeHierarchyManager | ) |
|
Method which sets the Boundary Volume Hierarchy manager.
- Parameters
-
uBoundaryVolumeHierarchyManager | Boundary Volume Hierarchy manager |
◆ setCollisionAlgorithm()
Method which sets the collision algorithm object to use.
- Parameters
-
uCollisionAlgorithm | Pointer to the collision algorithm object |
◆ setCollisionResponse()
void U4DEngine::U4DCollisionEngine::setCollisionResponse |
( |
U4DCollisionResponse * |
uCollisionResponse | ) |
|
Method which sets the collision response object to use.
- Parameters
-
uCollisionResponse | Collision response object to use |
◆ setManifoldGenerationAlgorithm()
void U4DEngine::U4DCollisionEngine::setManifoldGenerationAlgorithm |
( |
U4DManifoldGeneration * |
uManifoldGenerationAlgorithm | ) |
|
Method which set the collision manifold generation object to use.
- Parameters
-
uManifoldGenerationAlgorithm | Pointer to the manifold generation object |
◆ update()
void U4DEngine::U4DCollisionEngine::update |
( |
float |
dt | ) |
|
Method which updates the state of the collision engine.
- Parameters
-