How to animate changing camera target

I have some code which I was expecting to work but seems to animate the camera position rather than animate the camera’s target. Can anyone advise what mistake I am making? Babylon.js Playground

Short video to explain in more detail:

I logged out the position and target. The target does actually change correctly but the position also changes. I do not know why this happens but you can work around it by also animating-not-animating the position at the same time to stay still: https://playground.babylonjs.com/#IA5B1R#1

1 Like