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

The U4DPhysicsEngine class is in charge of implemeting the physics engine operations. More...

Public Member Functions

 U4DPhysicsEngine ()
 Constructor for the class.
 
 ~U4DPhysicsEngine ()
 Destructor for the class.
 
void updatePhysicForces (U4DDynamicAction *uAction, float dt)
 Method which updates all physics forces. More...
 
void setIntegrator (U4DIntegrator *uIntegrator)
 Method which sets the integrator. More...
 
void integrate (U4DDynamicAction *uAction, float dt)
 Method which integrates the equation of motion. More...
 
void update (float dt)
 Method which updates the state of the physics engine. More...
 

Detailed Description

The U4DPhysicsEngine class is in charge of implemeting the physics engine operations.

Member Function Documentation

◆ integrate()

void U4DEngine::U4DPhysicsEngine::integrate ( U4DDynamicAction uAction,
float  dt 
)

Method which integrates the equation of motion.

Parameters
uActionDynamic action
dtTime-step value

◆ setIntegrator()

void U4DEngine::U4DPhysicsEngine::setIntegrator ( U4DIntegrator uIntegrator)

Method which sets the integrator.

Parameters
uIntegratorPointer to the integrator to use

◆ update()

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

Method which updates the state of the physics engine.

Parameters
dtTime-step value

◆ updatePhysicForces()

void U4DEngine::U4DPhysicsEngine::updatePhysicForces ( U4DDynamicAction uAction,
float  dt 
)

Method which updates all physics forces.

Parameters
uActionDynamic action
dtTime-step value