- Home /
How to find direction Vector for a collision surface?
Basically I have two Vector2s: velocityBefore and velocityAfter, and I want to find a vector of a collision surface like shown in an image. It needs to point in a direction of velocityAfter, so if the ball on the picture would come in a reverse direction, the surface vector would point the other way. Is there a build-in method I can use for this or maybe it can be achieved just by some formula?
angle.png
(11.4 kB)
Comment
Best Answer
Answer by Andrii · Jan 15, 2017 at 03:10 PM
Okay, that was super dumb of me. It's just a sum of those two vectors divided by two. Urgh!!
Your answer
Follow this Question
Related Questions
Get angle between 2 Vector2's 5 Answers
Get angle of Vector2 1 Answer
Rotate an object around another object at an angle from the X axis? 1 Answer
2D angle of two Vec3 0 Answers