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

The U4DGravityForceGenerator class is in charge of updating gravitational forces acting on a 3D entity. More...

Inherits U4DEngine::U4DBodyForceGenerator.

Public Member Functions

 U4DRestingForcesGenerator ()
 Constructor for the class.
 
 ~U4DRestingForcesGenerator ()
 Destructor for the class.
 
void updateForce (U4DDynamicAction *uAction, float dt)
 Method which updates the force acting on the entity. More...
 
void generateNormalForce (U4DDynamicAction *uAction)
 Method which computes the resting normal force acting on the 3D entity. More...
 
void generateTorqueForce (U4DDynamicAction *uAction)
 Method which computes the torque force acting on the 3D entity. More...
 

Detailed Description

The U4DGravityForceGenerator class is in charge of updating gravitational forces acting on a 3D entity.

Member Function Documentation

◆ generateNormalForce()

void U4DEngine::U4DRestingForcesGenerator::generateNormalForce ( U4DDynamicAction uAction)

Method which computes the resting normal force acting on the 3D entity.

Parameters
uActionDynamic action

◆ generateTorqueForce()

void U4DEngine::U4DRestingForcesGenerator::generateTorqueForce ( U4DDynamicAction uAction)

Method which computes the torque force acting on the 3D entity.

Parameters
uActionDynamic action

◆ updateForce()

void U4DEngine::U4DRestingForcesGenerator::updateForce ( U4DDynamicAction uAction,
float  dt 
)
virtual

Method which updates the force acting on the entity.

Parameters
uActionDynamic action
dtTime-step value

Implements U4DEngine::U4DBodyForceGenerator.