diff --git a/web/samples/animation.html b/web/samples/animation.html index 3c86f36481..c94e19c6f7 100644 --- a/web/samples/animation.html +++ b/web/samples/animation.html @@ -74,7 +74,7 @@ class App { render() { if (this.animator) { const ms = Date.now() - this.animationStartTime; - this.animator.applyAnimation(0, (ms / 1000) % 1.0); + this.animator.applyAnimation(0, ms / 1000); this.animator.updateBoneMatrices(); } diff --git a/web/samples/morphing.html b/web/samples/morphing.html index 2241b5df67..b557c15db9 100644 --- a/web/samples/morphing.html +++ b/web/samples/morphing.html @@ -68,7 +68,7 @@ class App { if (this.animator) { const ms = Date.now() - this.animationStartTime; - this.animator.applyAnimation(0, (ms / 1000) % 1.0); + this.animator.applyAnimation(0, ms / 1000); this.animator.updateBoneMatrices(); }