I created the camera moving by the curve using parenting and follow path option. However, how to do so that the camera moves on this curve, simultaneously changing the rotation so that all the time it observes the other object (moving along a second path beside)? I have tried to add "track to" option, but the camera was adjusted completely not in this direction what it is necessary.
Here's how to do it.
- Create 2 curve paths, create a camera and a target object and parent each to one curve (CTRL-P, then Follow Path).
- Add a Track To constraint to the Camera with the target object set as the target
- Set the appropriate axis on the Track To constraint so that the camera points at the target. You may need to apply scale and rotation on the camera and/or target object to get it to work.
- The camera's rotation will match the target object. You may need to rotate the target object to get the camera Z axis pointing up. Starting with -Z for To Axis and Y for the Up Axis will get you where you want to be most of the time.
For the object add a Follow Path constraint and select the curve you want the object to follow as target. Enable Follow Curve and Enable Animate path.
Your object will follow that path:
Add a second curve.
Place your camera at the same in the same origin point of your second curve (the you want to use as travel path) and add a Follow path constraint with the curve as target, and animate path enabled:
Your camera will travel on that path.
On the camera add a Track to constraint with the object as Target, To -Z and Up Y.