Hello,
Within the past 2 years, I’ve created 3 projects that utilize camera animation after clicking 3D objects or UI elements in the scene. They all were working great until recently.
In the playground if you click the sphere, the camera is supposed to animate to the top view and stop. However, the camera continues weird movement after it reaches its defined location.
I am wondering, was there changes to the framework that may be causing this camera behavior? This functionality in my 3 projects was working fine up to a few weeks ago.
Or am I missing a call to terminate the camera animation altogether?
Thank you,
David
Hi, my 2 cents , true, your code is working if you select bjs v 6.49 in the playground.
@djeustice , this works https://playground.babylonjs.com/?BabylonToolkit#0RDYGU#32 , I use 2 instead of 0 for loopmode. ‘2’ correspond to ANIMATIONLOOPMODE_CONSTANT = 2;
This keeps popping on the forum and I am really afraid on the issue the change is creating 
Before using 0 or anything but 1 would not loop but 0 should be:
Basically for a couple year the animation would only loop for ANIMATIONLOOPMODE_CYCLE which is wrong as we should loop for anything but ANIMATIONLOOPMODE_CONSTANT
I fixed this a couple week back and it looks like it is breaking the code from a bunch a community members
I ll try to think of something.
Idea:
/** @deprecated Parameter "LoopModeThingy" should be used like so now... */
public static Anim.CreateAndStart(paramA, paramB, LoopModeThingy) {
if(LoopModeThingy === likeItWasBeforeBreaking) {
console.info("@deprecated parameter has changed. Please use enum. If you already use it please ignore this message. This info will be removed in x version increments.");
}
}
#todo: Remove deprecation info after x verion increments.
@samuelgirardin Changing loopmode from 0 to 2 fixed the issue, thank you for the advice!
@sebavan I apologize for neglecting to search the forums deeper for a solution, I didn’t mean to repost the topic.
Nah, it is pretty good as it helps us maintainer figure how much we broke by actually fixing it 