Jump to content
  • Advertisement
Sign in to follow this  
streamer

bingo balls movement

This topic is 4125 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!