Collisions - a wee bit of physics help needed.
Blitz3D Forums/Blitz3D Beginners Area/Collisions - a wee bit of physics help needed.
| ||
What I want to acheive is a kind of simple ball / ball collision system where I can set the mass of each individual ball and the collisions will react accordingly. I know that I can calculate the resultant x,y,z velocity components after the ball collides using the DotProduct of the collision normal and the current velocity vector ( thanks Swift). Reflectx = NX * Dot Reflecty = NY * Dot etc.. vx = VelX - Reflectx * bounce vy = etc... Where Bounce = 2.0 for no energy loss, 1.1 retains only 10% of the energy. I want to get a heavy object to collide with a lighter one and the reaction to be physically correct, i.e. light objects have very little effect on a heavy object. I think this will have something to do with ( Ek = .5 * mv^2) and ( m1v1+m2v2 = m1v1+m2v2 ) but need some guidance. Can anyone help. Cheers Stevie |
| ||
The particle physics engine linked to below has some equations in it which may be useful to you. http://www.blitzbasic.com/codearcs/codearcs.php?code=751 |
| ||
Nice one Axeman - this is exactly what I'm looking for - thanks :) |