I have code to look between different points and i want a smooth transition so I am trying to use lerp but it still jumps straight to each rotation without any transition. Inside the fps script I have:
on switch view button press{
lookTarget = transform;
lookTarget.LookAt (waypoints [viewWaypoint]);
}
void RotateView()
{
transform.rotation = Quaternion.Lerp(transform.rotation, lookTarget.rotation, Time.deltaTime*10);
}
Any ideas??