When I animate the camera, I get an unexpected problem if I use the setEasingFunction!!

When I animate the camera’target, I get an unexpected problem if I use the setEasingFunction

This is my mistake on chrome devtools:


When I didn’t set the setEasingFunction, it worked fine!Although I don’t know how this error relates to the setEasingFunction

I tried replicating on PG, and even though it didn’t work, devtool didn’t report the same errors as me.
notice the line number of 55

I checked the forums and on a PG that worked well before, I added the setEasingFunction and it wouldn’t work either
notice the line number of 28

In the same animation group, the setEasingFunction cannot be set in camera target animation, nor can other animations be set, otherwise it cannot run

notice the line number of 52

new BezierCurveEase(0.1,.27,.01, 1);

Maybe none of the four parameters of this Bessel curve can be zero.

You nailed it! Your parameters create an infinite value :slight_smile: You have to be AFTER the starting point (0)

1 Like