- #1
khalsa
- 6
- 0
Hi, I am trying to simulate a collision. A particle falls down on a sphere and a collision between sphere and particle takes place. The sphere always remain stationary and the collision itself is not elastic.I was trying to set the velocity of particle to be zero after the collision. But that does not give good simulation when the collision does not occur on top of sphere but along the side of sphere.
So now after the collision i need to make sure that the particle has a velocity which is orthogonal to the vector of the point of collision from the center of sphere. The velocity along the vector from center of sphere to point of collision should become zero. How do i do that?
I am a bit mathematically challenged but i think it has something to do with dot product of vectors. Or maybe i am wrong :)
Thanks
Edit: You can check the image describing the collision at http://www.freeimagehosting.net/image.php?c5ae01b476.jpg
So now after the collision i need to make sure that the particle has a velocity which is orthogonal to the vector of the point of collision from the center of sphere. The velocity along the vector from center of sphere to point of collision should become zero. How do i do that?
I am a bit mathematically challenged but i think it has something to do with dot product of vectors. Or maybe i am wrong :)
Thanks
Edit: You can check the image describing the collision at http://www.freeimagehosting.net/image.php?c5ae01b476.jpg
Last edited: