- Home /
Vector3 parallel move.
Hi! I'm trying to make my camera moving for the same destintion and distance as my object does. But i want to use Lerp for smooth move. To do that i need to know coordinates of destination of my camera.
I know Vector3 of B (1 position of object), C (destination of object), A (position of camera) How could i find Vector3 of D to create smooth move from A to D for the same distance and direction B->C
1.png
(5.4 kB)
Comment
You could just find the difference between A & B and then set that same offset between C & D.
http://unity3d.com/learn/tutorials/projects/survival-shooter/camera-setup realy sry, spend 3 hours ((
Answer by kaka24fan · Feb 26, 2015 at 02:36 PM
D=A+(C-B)
Because C-B is the vector from B to C. When added to A it'll give you your destination.