Animations to a ModelInstance. This class only applies the actual
Node transformations, it does not manage animations or keep track of animation states. See AnimationController
for an implementation of this class which does manage animations.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public final ModelInstance | target
The |
| private static final BaseAnimationController. | |
| private final Pool | |
| private static final ObjectMap |
| Access | Constructor and Description |
|---|---|
| public | BaseAnimationController(final ModelInstance
The target)ModelInstance on which the animations are being performed.Construct a new BaseAnimationController. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | applyAnimation(final Animation animation, final float time)
Apply a single animation to the |
| protected static void | applyAnimation(final ObjectMap<Node, BaseAnimationController.
Helper method to apply one animation to either an objectmap for blending or directly to the bones. |
| protected void | applyAnimations(final Animation anim1, final float time1, final Animation anim2, final float time2, final float weight)
Apply two animations, blending the second onto to first using weight. |
| private static final void | applyNodeAnimationBlending(final NodeAnimation nodeAnim, final ObjectMap<Node, BaseAnimationController.
|
| private static final void | |
| protected void | begin()
Begin applying multiple animations to the instance, must followed by one or more calls to {
|
| protected void | |
| pack-priv static final <T> int | Returns: key frame index, 0 if time is out of key frames time rangeKey frames ordered by time ascending arr, final float Time to search time)Find first key frame index just before a given time |
| private static final BaseAnimationController. | |
| private static final Quaternion | |
| private static final Vector3 | |
| private static final Vector3 | |
| protected void | removeAnimation(final Animation animation)
Remove the specified animation, by marking the affected nodes as not animated. |
| applying | back to summary |
|---|---|
| private boolean applying | |
| target | back to summary |
|---|---|
| public final ModelInstance target The | |
| tmpT | back to summary |
|---|---|
| private static final BaseAnimationController. | |
| transformPool | back to summary |
|---|---|
| private final Pool<BaseAnimationController. | |
| transforms | back to summary |
|---|---|
| private static final ObjectMap<Node, BaseAnimationController. | |
| BaseAnimationController | back to summary |
|---|---|
| public BaseAnimationController(final ModelInstance target) Construct a new BaseAnimationController.
| |
| apply | back to summary |
|---|---|
| protected void apply(final Animation animation, final float time, final float weight) Apply an animation, must be called between {
| |
| applyAnimation | back to summary |
|---|---|
| protected void applyAnimation(final Animation animation, final float time) Apply a single animation to the | |
| applyAnimation | back to summary |
|---|---|
| protected static void applyAnimation(final ObjectMap<Node, BaseAnimationController. Helper method to apply one animation to either an objectmap for blending or directly to the bones. | |
| applyAnimations | back to summary |
|---|---|
| protected void applyAnimations(final Animation anim1, final float time1, final Animation anim2, final float time2, final float weight) Apply two animations, blending the second onto to first using weight. | |
| applyNodeAnimationBlending | back to summary |
|---|---|
| private static final void applyNodeAnimationBlending(final NodeAnimation nodeAnim, final ObjectMap<Node, BaseAnimationController. | |
| applyNodeAnimationDirectly | back to summary |
|---|---|
| private static final void applyNodeAnimationDirectly(final NodeAnimation nodeAnim, final float time) | |
| begin | back to summary |
|---|---|
| protected void begin() Begin applying multiple animations to the instance, must followed by one or more calls to {
| |
| end | back to summary |
|---|---|
| protected void end() End applying multiple animations to the instance and update it to reflect the changes. | |
| getFirstKeyframeIndexAtTime | back to summary |
|---|---|
| pack-priv static final <T> int getFirstKeyframeIndexAtTime(final Array<NodeKeyframe<T>> arr, final float time) Find first key frame index just before a given time
| |
| getNodeAnimationTransform | back to summary |
|---|---|
| private static final BaseAnimationController. | |
| getRotationAtTime | back to summary |
|---|---|
| private static final Quaternion getRotationAtTime(final NodeAnimation nodeAnim, final float time, final Quaternion out) | |
| getScalingAtTime | back to summary |
|---|---|
| private static final Vector3 getScalingAtTime(final NodeAnimation nodeAnim, final float time, final Vector3 out) | |
| getTranslationAtTime | back to summary |
|---|---|
| private static final Vector3 getTranslationAtTime(final NodeAnimation nodeAnim, final float time, final Vector3 out) | |
| removeAnimation | back to summary |
|---|---|
| protected void removeAnimation(final Animation animation) Remove the specified animation, by marking the affected nodes as not animated. When switching animation, this should be call prior to applyAnimation(s). | |
| Modifier and Type | Field and Description |
|---|---|
| public final Quaternion | |
| public final Vector3 | |
| public final Vector3 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BaseAnimationController. | |
| public BaseAnimationController. | |
| public BaseAnimationController. | |
| public void | |
| public BaseAnimationController. | |
| public BaseAnimationController. | |
| public Matrix4 | |
| public String |
| rotation | back to summary |
|---|---|
| public final Quaternion rotation | |
| scale | back to summary |
|---|---|
| public final Vector3 scale | |
| translation | back to summary |
|---|---|
| public final Vector3 translation | |
| Transform | back to summary |
|---|---|
| public Transform() | |
| idt | back to summary |
|---|---|
| public BaseAnimationController. | |
| lerp | back to summary |
|---|---|
| public BaseAnimationController. | |
| lerp | back to summary |
|---|---|
| public BaseAnimationController. | |
| reset | back to summary |
|---|---|
| public void reset() Implements com. Doc from com. Resets the object for reuse. Object references should be nulled and fields may be set to default values.
| |
| set | back to summary |
|---|---|
| public BaseAnimationController. | |
| set | back to summary |
|---|---|
| public BaseAnimationController. | |
| toMatrix4 | back to summary |
|---|---|
| public Matrix4 toMatrix4(final Matrix4 out) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |