Properly doing cameras interpolation through a target (II)
This is the 2nd post on the series Properly doing cameras interpolation through a target:
Having fun interpolating cameras? Let's take a look at some issues of the Camera interpolator we started on the previous post and fix them
The Rotation issue
If you test the interpolator a little bit you'll see it behaves very well even with moving objects. Because it focuses on the target it doesn't matter if it is moving or not, on any step of the interpolation it places itself on the target position and then interpolates from there.
But there is an issue interpolating between rotating cameras. Make the target rotate by adding the next script to it
and then set any of your cameras as children of the target so they rotate with them. Now pay attention to what happens when you interpolate from this camera to itself:
Read more »But there is an issue interpolating between rotating cameras. Make the target rotate by adding the next script to it
and then set any of your cameras as children of the target so they rotate with them. Now pay attention to what happens when you interpolate from this camera to itself:
Labels: cameras, interpolation, unity3d