com.md5importer.control
Class BlendController
java.lang.Object
com.md5importer.control.AbstractController
com.md5importer.control.BlendController
- All Implemented Interfaces:
- IBlendController, IController
public class BlendController
- extends AbstractController
- implements IBlendController
BlendController defines the concrete implementation
of a controller unit that provides the functionality to blend
the maintained IMD5Node from its current skeleton
position to the first frame of a given IMD5Anim.
|
Method Summary |
void |
blend(IMD5Anim anim,
IMD5AnimController animController,
float duration)
Blend the maintained node from its current skeleton position
to the first frame of the given animation in given duration. |
void |
update(float interpolation)
Update the controller. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlendController
public BlendController(IMD5Node node,
IMD5NodeController controller)
- Constructor of
BlendController.
- Parameters:
node - The IMD5Node to blend.controller - The IMD5NodeController for the node.
update
public void update(float interpolation)
- Description copied from interface:
IController
- Update the controller.
- Specified by:
update in interface IController
- Parameters:
interpolation - The Float time interpolation.
blend
public void blend(IMD5Anim anim,
IMD5AnimController animController,
float duration)
- Description copied from interface:
IBlendController
- Blend the maintained node from its current skeleton position
to the first frame of the given animation in given duration.
- Specified by:
blend in interface IBlendController
- Parameters:
anim - The IMD5Anim to blend to.animController - The IMD5AnimController of the target animation.duration - The Float blending duration.