Basic physic engine with static and dynamic sphere, ported from here http://stackoverflow.com/questions/345838/ball-to-ball-collision-detection-and-handling
you can't really stack sphere as they become instable , also if the sphere move to fast the collision might be miss... both of this might be fix by using continuous collision detection and finnally note that the sphere are not rotating...
You can actually get the colliding sphere id back with readback from buffer...
Hi Sanch, Any idea on how to make the spheres stack on each other? you mention something about continuous collision, can you give me a hint on how to do this in the shader?
Hi, i did try several time and fail at having a stable system, i'm afraid i can't help...
anonymous user login