A roulette wheel

BlitzMax Forums/BlitzMax Programming/A roulette wheel

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hello everyone. I'm creating a roulette game and I'm trying to find the best way of simulating a ball being launched into, riding around the outer rim for a while before drifting in and bouncing off the pocket seperators (frets) and finally settling in a pocket.

Displaying the wheel and spinning it is fairly easy. It's the ball physics that seem difficult. I'm not interested in a perfect simulation. For instance, rather having the ball bounce off of each fret realistically I'm happy to say,

"If wheel speed > 10 then deflect ball at random angle"

I guess it's similar to an object getting sucked into a vortex or black hole, then being repelled as it gets too deep. Any pointers would be welcome. Thanks.