- #1
AndrewM16921
- 2
- 0
I'm writing a program that simulates circular "particles" in 2d space. I'm at the collision handling part. I've already corrected their positions when an overlap occurs. So, my question is, how do I determine the angle of each particle's velocity after the collision? I have the position and velocity vectors of both particles, so I can easily calculate the angle each particle is moving in before the collision and the angle from one particle toward another.
http://nubcraft.org/stuff/img/collide.png
Thanks for any help.
http://nubcraft.org/stuff/img/collide.png
Thanks for any help.
Last edited by a moderator: