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

The U4DRungaKuttaMethod class is in charge of integrating the equation of motion. More...

Inherits U4DEngine::U4DIntegrator.

Public Member Functions

 U4DRungaKuttaMethod ()
 Constructor for the class.
 
 ~U4DRungaKuttaMethod ()
 Destructor for the class.
 
void integrate (U4DDynamicAction *uAction, float dt)
 Method which integrates the equation of motion for the entity. More...
 
void evaluateLinearAspect (U4DDynamicAction *uAction, U4DVector3n &uLinearAcceleration, float dt, U4DVector3n &uVnew, U4DVector3n &uSnew)
 Method used to calculate the linear velocity of the entity. More...
 
void evaluateAngularAspect (U4DDynamicAction *uAction, U4DVector3n &uAngularAcceleration, float dt, U4DVector3n &uAngularVelocityNew, U4DQuaternion &uOrientationNew)
 Method used to calculate the angular velocity of the entity. More...
 
- Public Member Functions inherited from U4DEngine::U4DIntegrator
virtual ~U4DIntegrator ()
 Destructor for the class.
 

Detailed Description

The U4DRungaKuttaMethod class is in charge of integrating the equation of motion.

Member Function Documentation

◆ evaluateAngularAspect()

void U4DEngine::U4DRungaKuttaMethod::evaluateAngularAspect ( U4DDynamicAction uAction,
U4DVector3n uAngularAcceleration,
float  dt,
U4DVector3n uAngularVelocityNew,
U4DQuaternion uOrientationNew 
)

Method used to calculate the angular velocity of the entity.

Parameters
uAction3D model entity
uAngularAcceleration3D model angular acceleration
dtTime-step value
uAngularVelocityNew3D model new angular velocity
uOrientationNew3D mdoel new orientation

◆ evaluateLinearAspect()

void U4DEngine::U4DRungaKuttaMethod::evaluateLinearAspect ( U4DDynamicAction uAction,
U4DVector3n uLinearAcceleration,
float  dt,
U4DVector3n uVnew,
U4DVector3n uSnew 
)

Method used to calculate the linear velocity of the entity.

Parameters
uAction3D model entity
uLinearAcceleration3D model Linear Acceleration
dttime-step value
uVnew3D model new velocity
uSnew3D model new position

◆ integrate()

void U4DEngine::U4DRungaKuttaMethod::integrate ( U4DDynamicAction uAction,
float  dt 
)
virtual

Method which integrates the equation of motion for the entity.

Parameters
uActionDynamic action
dtTime-step value

Implements U4DEngine::U4DIntegrator.