Sign in to follow this  
streamer

bingo balls movement

Recommended Posts

Hi all! Can somebody please help to define the math of bingo balls moving inside one spherical body? Or at least point me to some math article that I can reuse in my program? Thanks in advance

Share this post


Link to post
Share on other sites
Collision detection is simple, sphere on sphere collision detection.

Collision response and physics not so simple, but a basic euler integration, velocity reflection, and putting some random impulses should be ok.

Share this post


Link to post
Share on other sites
I don't mean to complicate things so feel free to ignore me if you've got it working, but I've found verlet integration to be more stable and better looking than euler in really simple cases(like all spheres) where there are alot of simultaneous collissions(ie stuff sitting on top of other stuff). If you run into problems because of the high number of collissions its an option to consider.

Share this post


Link to post
Share on other sites
Verlet is cool, Although I use it if I am not concerned with the response code, or for bodies made of several spheres (not just one). You can certainly use that. As for a spherical container, it's just like a sphere-sphere collision, you just have to play around with the relative radius.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this