Class AnimationControllerHack
java.lang.Object
gaiasky.util.gdx.model.BaseIntAnimationController
gaiasky.util.gdx.model.IntAnimationController
gaiasky.util.gdx.model.gltf.scene3d.animation.AnimationControllerHack
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.util.gdx.model.IntAnimationController
IntAnimationController.AnimationDesc, IntAnimationController.AnimationListener
-
Field Summary
Fields inherited from class gaiasky.util.gdx.model.IntAnimationController
allowSameAnimation, animationPool, current, inAction, paused, previous, queued, queuedTransitionTime, transitionCurrentTime, transitionTargetTime
Fields inherited from class gaiasky.util.gdx.model.BaseIntAnimationController
target
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(IntAnimation animation, float time, float weight) protected void
applyAnimation
(IntAnimation animation, float time) Apply a single animation to theModelInstance
and update the it to reflect the changes.protected static void
applyAnimationPlus
(com.badlogic.gdx.utils.ObjectMap<IntNode, AnimationControllerHack.Transform> out, com.badlogic.gdx.utils.Pool<AnimationControllerHack.Transform> pool, float alpha, IntAnimation animation, float time) Helper method to apply one animation to either an object map for blending or directly to the bones.protected void
applyAnimations
(IntAnimation anim1, float time1, IntAnimation anim2, float time2, float weight) Apply two animations, blending the second onto to first using weight.protected void
begin()
Begin applying multiple animations to the instance, must followed by one or more calls to {apply(IntAnimation, float, float)
and finally {end()
.protected void
end()
End applying multiple animations to the instance and update it to reflect the changes.void
setAnimation
(IntAnimation animation) void
setAnimation
(IntAnimation animation, int loopCount) void
Methods inherited from class gaiasky.util.gdx.model.IntAnimationController
action, action, action, action, animate, animate, animate, animate, animate, animate, animate, queue, queue, queue, queue, setAnimation, setAnimation, setAnimation, setAnimation, setAnimation, setAnimation, setAnimation, setAnimation, update
Methods inherited from class gaiasky.util.gdx.model.BaseIntAnimationController
applyAnimation, removeAnimation
-
Field Details
-
calculateTransforms
public boolean calculateTransforms
-
-
Constructor Details
-
AnimationControllerHack
-
-
Method Details
-
begin
protected void begin()Begin applying multiple animations to the instance, must followed by one or more calls to {apply(IntAnimation, float, float)
and finally {end()
.- Overrides:
begin
in classBaseIntAnimationController
-
apply
- Overrides:
apply
in classBaseIntAnimationController
- Parameters:
weight
- The blend weight of this animation relative to the previous applied animations.
-
end
protected void end()End applying multiple animations to the instance and update it to reflect the changes.- Overrides:
end
in classBaseIntAnimationController
-
applyAnimation
Apply a single animation to theModelInstance
and update the it to reflect the changes.- Overrides:
applyAnimation
in classBaseIntAnimationController
-
applyAnimations
protected void applyAnimations(IntAnimation anim1, float time1, IntAnimation anim2, float time2, float weight) Apply two animations, blending the second onto to first using weight.- Overrides:
applyAnimations
in classBaseIntAnimationController
-
applyAnimationPlus
protected static void applyAnimationPlus(com.badlogic.gdx.utils.ObjectMap<IntNode, AnimationControllerHack.Transform> out, com.badlogic.gdx.utils.Pool<AnimationControllerHack.Transform> pool, float alpha, IntAnimation animation, float time) Helper method to apply one animation to either an object map for blending or directly to the bones. -
setAnimationDesc
-
setAnimation
-
setAnimation
- Parameters:
animation
- animation to playloopCount
- loop count : 0 paused, -1 infinite, n for n loops
-