|
Untold Engine
Beta v0.0.16
docs
|
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. | |
The U4DRungaKuttaMethod class is in charge of integrating the equation of motion.
| void U4DEngine::U4DRungaKuttaMethod::evaluateAngularAspect | ( | U4DDynamicAction * | uAction, |
| U4DVector3n & | uAngularAcceleration, | ||
| float | dt, | ||
| U4DVector3n & | uAngularVelocityNew, | ||
| U4DQuaternion & | uOrientationNew | ||
| ) |
Method used to calculate the angular velocity of the entity.
| uAction | 3D model entity |
| uAngularAcceleration | 3D model angular acceleration |
| dt | Time-step value |
| uAngularVelocityNew | 3D model new angular velocity |
| uOrientationNew | 3D mdoel new orientation |
| void U4DEngine::U4DRungaKuttaMethod::evaluateLinearAspect | ( | U4DDynamicAction * | uAction, |
| U4DVector3n & | uLinearAcceleration, | ||
| float | dt, | ||
| U4DVector3n & | uVnew, | ||
| U4DVector3n & | uSnew | ||
| ) |
Method used to calculate the linear velocity of the entity.
| uAction | 3D model entity |
| uLinearAcceleration | 3D model Linear Acceleration |
| dt | time-step value |
| uVnew | 3D model new velocity |
| uSnew | 3D model new position |
|
virtual |
Method which integrates the equation of motion for the entity.
| uAction | Dynamic action |
| dt | Time-step value |
Implements U4DEngine::U4DIntegrator.