private final static void applyNodeAnimationDirectly (final NodeAnimation nodeAnim, final float time) { final Node node = nodeAnim.node; node.isAnimated = true; final Transform transform = getNodeAnimationTransform(nodeAnim, time); transform.toMatrix4(node.localTransform); }
/** End applying multiple animations to the instance and update it to reflect the changes. */ protected void end () { if (!applying) throw new GdxRuntimeException("You must call begin() first"); for (Entry<Node, Transform> entry : transforms.entries()) { entry.value.toMatrix4(entry.key.localTransform); transformPool.free(entry.value); } transforms.clear(); target.calculateTransforms(); applying = false; }
if (!animation.inAction) { trTmp.idt().lerp(trForward, Gdx.graphics.getDeltaTime() / animation.current.animation.duration); character.transform.mul(trTmp.toMatrix4(tmpMatrix)); if (!animation.inAction) { trTmp.idt().lerp(trBackward, Gdx.graphics.getDeltaTime() / animation.current.animation.duration); character.transform.mul(trTmp.toMatrix4(tmpMatrix)); character.transform.mul(trTmp.toMatrix4(tmpMatrix)); } else if (Gdx.input.isKeyPressed(Keys.LEFT) && (status == walk || status == back) && !animation.inAction) { trTmp.idt().lerp(trLeft, Gdx.graphics.getDeltaTime() / animation.current.animation.duration); character.transform.mul(trTmp.toMatrix4(tmpMatrix));
private final static void applyNodeAnimationDirectly (final NodeAnimation nodeAnim, final float time) { final Node node = nodeAnim.node; node.isAnimated = true; final Transform transform = getNodeAnimationTransform(nodeAnim, time); transform.toMatrix4(node.localTransform); }
private final static void applyNodeAnimationDirectly (final NodeAnimation nodeAnim, final float time) { final Node node = nodeAnim.node; node.isAnimated = true; final Transform transform = getNodeAnimationTransform(nodeAnim, time); transform.toMatrix4(node.localTransform); }
/** End applying multiple animations to the instance and update it to reflect the changes. */ protected void end () { if (!applying) throw new GdxRuntimeException("You must call begin() first"); for (Entry<Node, Transform> entry : transforms.entries()) { entry.value.toMatrix4(entry.key.localTransform); transformPool.free(entry.value); } transforms.clear(); target.calculateTransforms(); applying = false; }
/** End applying multiple animations to the instance and update it to reflect the changes. */ protected void end () { if (!applying) throw new GdxRuntimeException("You must call begin() first"); for (Entry<Node, Transform> entry : transforms.entries()) { entry.value.toMatrix4(entry.key.localTransform); transformPool.free(entry.value); } transforms.clear(); target.calculateTransforms(); applying = false; }