|
|
|
|
|
ad::BlendBase Class ReferencePure virtual base class for blend hierarchies.
More...
#include <animation.h>
Inherited by ad::AnimPlayer, and ad::Blend.
Inheritance diagram for ad::BlendBase:
[legend]List of all members.
Detailed Description
Pure virtual base class for blend hierarchies.
You can inherit from this base class and define the Calculate function to generate a Pose at runtime for your derived class. Then you can use ad::Blend to create create a blend between your class and any other class that inherits from this base class.
Some example usages could be:
- Calculate the pose from rag-doll physics.
- Create a custom blend function that works like ad::Blend but uses 3 or more source poses and perhaps even does cubic interpolation.
- Create some AI that controls bone rotations directly to generate a pose.
There are many possibilities, and perhaps future versions of animadead will come with more default uses. This would be an excellent way to implement IK.
- See also:
- ad::Blend, ad::AnimPlayer, ad::HiBoneMask
Member Function Documentation
virtual void ad::BlendBase::Calculate |
( |
Pose * |
out_pose, |
|
|
HiBoneMask * |
optionalMask = 0 |
|
) |
[pure virtual] |
|
|
If no optionalMask is used, this function should calculate the pose for all bones. If a mask is used, only the bones in the selection should be affected in the out_pose . - Parameters:
-
| out_pose | This parameter should be allocated before calling this calculate function, and the result is stored in this Pose. |
Implemented in ad::AnimPlayer, and ad::Blend. |
The documentation for this class was generated from the following file:
|
|