Camera Animation bug

O you re rigth thats solved, just gonna leave it out here very explicit for anyone looking for the fix
just needed to replace the 0 for the BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT:

old way(bug on it):
BABYLON.Animation.CreateAndStartAnimation(‘at4’, this, whichprop, speed, 120, this[whichprop], targetval, 0, ease);
}
new way (bug fix):
BABYLON.Animation.CreateAndStartAnimation(‘at4’, this, whichprop, speed, 120, this[whichprop], targetval, BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT, ease);

Thanks for the help guys!

1 Like