Interpolate camera movement along an arc of a circle

In my scene, I have a camera defined through position and target in 3d space.

Given the center of C and the two points Pold and PNew, how at a distance R from the center, how can I interpolate the position of the camera with an arbitrary number of steps on the arc?

My goal is to perform smooth animation of the view around an object located at a central point.

+3
source share
1 answer

It is called spherical linear interpolation, and everything you need can be found here .

+2
source

Source: https://habr.com/ru/post/1777870/


All Articles