Hello everyone, Im trying to move make a transition between a far away camera and a closeup one. They both can move around and be in random places when the player chooses to switch between them. I’ve tried making it so that there is a third camera that is turned on during this transition and it moves between the two points where the other cameras are smoothly, then changes to the other camera.
Currently it only instantaneously jumps between locations, and I dont know if this will translate the rotation smoothly as well since it is only Vector3? Here is the script just dealing with the transitional camera that I have so far.
var posCam1 : Transform;
var posCam2 : Transform;
var positionCurrent : Transform;
var transitionCamera : GameObject;
var speedAdjust : float;
function Start(){
ReOrient();
}
function ReOrient (){
positionCurrent.transform.position = Vector3.Lerp(posCam1.transform.position, posCam2.transform.position, Time.deltaTime * speedAdjust);
transitionCamera.transform.position = positionCurrent.transform.position;
}
Would someone be willing to explain to me what I am doing wrong? Thanks!