I've been trying to do some simple physics simulations using
jit.gl.sketch, using 2 spheres rolling around, sort of simulating 2
balls on a pool table. Can anyone point me in the right direction of
how to figure out the trajectory of the balls after colliding with each
other? The collision detection is easy, but I can't figure out the
math of how to bounce them in the proper direction after colliding.
I've looked at the 'trajectory' patch from
http://cicm.mshparisnord.net/dl/trajectory.htm but it's difficult to
figure out what the heck is going on, as it's a very very thick patch.
Has anyone on the list done anything like this they'd like to share?
I'm interested in hitting or pushing one ball, calculating it's speed
and angle, and applying that to the collision with another object to
calculate the new trajectories of both objects, plus I'd like to add
some real world variables, such as mass, friction, elasticity, and