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
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