|
I have written a script that moves the camera from one node to another when the player moves into a trigger. It also rotates the camera based on the rotation of the node. However, the camera doesn't actually "move", rather it teleports to the node. I was trying to see if anyone could help me with making the camera move gradually from position A to the the position of the node and also interpolate the rotation while moving. Here is the code I have written: (This script is attached to the trigger itself)
(comments are locked)
|
|
I haven't tried this before, since I've never needed to, but using the Vector3.Lerp() method should do what you need. So try something like this:
Take a look at this link
(comments are locked)
|
