#include <RagdollVelocityEvaluators.h>
Inherits EMotionFX::RagdollVelocityEvaluator.
Public Member Functions | |
void | Update (const Physics::RagdollState &lastRagdollPose, const Physics::RagdollState ¤tRagdollPose, float timeDelta) override |
void | CalculateInitialVelocities (Physics::RagdollState &outRagdollPose) override |
This is called when the ragdoll gets activated. | |
Public Member Functions inherited from EMotionFX::RagdollVelocityEvaluator | |
virtual void | CalculateVelocities (Physics::RagdollState &outRagdollPose, const Physics::RagdollState &lastRagdollPose, const Physics::RagdollState ¤tRagdollPose, float timeDelta) |
Calculate the linear and angular velocities for all nodes in the ragdoll based on the last, the current poses and the time delta. | |
virtual void | Update (const Physics::RagdollState &lastRagdollPose, const Physics::RagdollState ¤tRagdollPose, float timeDelta)=0 |
virtual void | CalculateInitialVelocities (Physics::RagdollState &outRagdollPose)=0 |
This is called when the ragdoll gets activated. | |
The running average velocity evaluator calculates the velocity based on the last and current pose each frame and equally weights it with the running average. This result is a smaller memory footprint as there is no need to store the pose history but also ignores the time deltas and exponentially smoothed out older velocities.
|
overridevirtual |
This is called when the ragdoll gets activated.
Implements EMotionFX::RagdollVelocityEvaluator.
|
overridevirtual |
Implements EMotionFX::RagdollVelocityEvaluator.