- Home /
Find Vector3 from a starting Vector3, angle, and distance.
I'm moving an object from one point to another point. I need to apply it's exact angle of movement and distance to other objects in the scene. Any idea behind the math I would need for this?
Comment
Best Answer
Answer by robertbu · Jul 31, 2014 at 01:27 AM
It is unclear what information you have. Given two points, pt1 and pt2, you can move another object the same distance and angle by as the object traveling between the two points by::
other.transform.position += (pt2 - pt1);
You know those questions you ask that you over think, then someone gives you the answer and you facepalm? Yeah, that.