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.
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.