https://www.babylonjs-playground.com/#B2GLWZ#1
the above example is prototype we are working on a project.
when you click on navigation point(arrows) camera rotation and position will be animated.
works fine on initial camera rotation.
some cases (spin camera 3-4 times 360 degrees in one direction) camera rotation y will change above 14 or - 14.
after click on any navigation point its spinning like TOP TOY.
how to calculate nearest Y angle value to animate perfectly.
Thank you