Is there anyway to animate between different LookAt() targets. I want a nice smooth animation (Lerp?) between the targets.
Here is my simple script that is switching the camera targets…
var defaultTarget : Transform;
var bowTarget : Transform;
var sternTarget : Transform;
var skyDeckTarget : Transform;
function LateUpdate () {
if (MainGUI.defaultCamera == true) {
camera.main.transform.LookAt(defaultTarget);
}
if (MainGUI.bowCamera == true) {
camera.main.transform.LookAt(bowTarget);
}
if (MainGUI.sternCamera == true) {
camera.main.transform.LookAt(sternTarget);
}
if (MainGUI.skyDeckCamera == true) {
camera.main.transform.LookAt(skyDeckTarget);
}
}
Thanks in advance,
Adam