Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DCollisionEngine Class Reference

The U4DCollisionEngine class is in charge of implemeting the collision engine operations. More...

Public Member Functions

 U4DCollisionEngine ()
 Constructor for the class.
 
 ~U4DCollisionEngine ()
 Destructor for the class.
 
void setCollisionAlgorithm (U4DCollisionAlgorithm *uCollisionAlgorithm)
 Method which sets the collision algorithm object to use. More...
 
void setManifoldGenerationAlgorithm (U4DManifoldGeneration *uManifoldGenerationAlgorithm)
 Method which set the collision manifold generation object to use. More...
 
void setCollisionResponse (U4DCollisionResponse *uCollisionResponse)
 Method which sets the collision response object to use. More...
 
void setBoundaryVolumeHierarchyManager (U4DBVHManager *uBoundaryVolumeHierarchyManager)
 Method which sets the Boundary Volume Hierarchy manager. More...
 
void detectBroadPhaseCollisions (float dt)
 Method which detects Broad-Phase collision. More...
 
void detectNarrowPhaseCollision (float dt)
 Method which detects Narrow-Phase collision. More...
 
void addToBroadPhaseCollisionContainer (U4DDynamicAction *uAction)
 Method which adds the 3D entity to the BVH(Boundary Volume Hierarchy) scenegraph. More...
 
void update (float dt)
 Method which updates the state of the collision engine. More...
 
void add (U4DDynamicAction *uAction)
 Add a 3D model to the collision engine. More...
 
void remove (U4DDynamicAction *uAction)
 Remove the 3D model from the collision engine. More...
 
void clearContainers ()
 Method which clears all scenegraphs and containers with 3D entities used during collision.
 
int getNumberOfModelsInContainer ()
 

Detailed Description

The U4DCollisionEngine class is in charge of implemeting the collision engine operations.

Member Function Documentation

◆ add()

void U4DEngine::U4DCollisionEngine::add ( U4DDynamicAction uAction)

Add a 3D model to the collision engine.

Parameters
uActionPointer 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
uActionDynamic action

◆ detectBroadPhaseCollisions()

void U4DEngine::U4DCollisionEngine::detectBroadPhaseCollisions ( float  dt)

Method which detects Broad-Phase collision.

Parameters
dtTime-step value

◆ detectNarrowPhaseCollision()

void U4DEngine::U4DCollisionEngine::detectNarrowPhaseCollision ( float  dt)

Method which detects Narrow-Phase collision.

Parameters
dtTime-step value

◆ remove()

void U4DEngine::U4DCollisionEngine::remove ( U4DDynamicAction uAction)

Remove the 3D model from the collision engine.

Parameters
uActionPointer to the action to remove

◆ setBoundaryVolumeHierarchyManager()

void U4DEngine::U4DCollisionEngine::setBoundaryVolumeHierarchyManager ( U4DBVHManager uBoundaryVolumeHierarchyManager)

Method which sets the Boundary Volume Hierarchy manager.

Parameters
uBoundaryVolumeHierarchyManagerBoundary Volume Hierarchy manager

◆ setCollisionAlgorithm()

void U4DEngine::U4DCollisionEngine::setCollisionAlgorithm ( U4DCollisionAlgorithm uCollisionAlgorithm)

Method which sets the collision algorithm object to use.

Parameters
uCollisionAlgorithmPointer to the collision algorithm object

◆ setCollisionResponse()

void U4DEngine::U4DCollisionEngine::setCollisionResponse ( U4DCollisionResponse uCollisionResponse)

Method which sets the collision response object to use.

Parameters
uCollisionResponseCollision response object to use

◆ setManifoldGenerationAlgorithm()

void U4DEngine::U4DCollisionEngine::setManifoldGenerationAlgorithm ( U4DManifoldGeneration uManifoldGenerationAlgorithm)

Method which set the collision manifold generation object to use.

Parameters
uManifoldGenerationAlgorithmPointer to the manifold generation object

◆ update()

void U4DEngine::U4DCollisionEngine::update ( float  dt)

Method which updates the state of the collision engine.

Parameters
dtTime-step value