Animate camera along curved path

So I have a camera and want to animate its position. A linear animation is no problem: Babylon.js Playground, but I’m not sure how to animate the camera along an arbitrarily curved path.

How would I do that?

Hi jhadenfeldt,

Babylon 101 has a really cool section on Animations that might help you out. There are other ways to tackle this, but one of the easiest would be to provide tangents (inTangent/outTangent) with your keyframes. I modified your Playground to show a quick example of this in action.

https://playground.babylonjs.com/#65365X#1

2 Likes

Exactly what I needed, thank you!