Re: casino roulette ball bouncing math?

Can anyone help with math for ball bouncing movements on roulette ring, after it falls on it.

With or without the magnetic-fields? :wink: Try solving it first in one or two dimensions, sort of like a ball-bearing falling on top of a bicycle-chain. After that it wouldn’t be too difficult to visually cheat with random bounces in the third dimension.

Your question should be something like this:
“How do I simulate a ball bouncing?”

I will tell you what you need, and you will have
to figure it out on your own. You will need the
knowledge of:

  1. Physics: equations of motion in 3 dimensions,
    and have the ability to integrate them. Hint: a good
    simulation will have many states, more than the
    three translations; rotation of the ball must be
    included (this might be hard, because you need to
    learn about quaternions to do a desent job).
  2. Math: you will have to know something about
    numerical methods, so that you can integrate the
    equations of motion. This is the easiest thing,
    but to do a good job, you might have to learn some
    more sophisticated techniques than the very basics.
  3. Collision detection (in a general sense): you
    will need to either use some sort of collision
    detection algorithm, or use “potential fields” in
    your equations of motion. I recommend Col. det.
    which is simply a check on whether objects collide.

I know I am not giving you much detail here, but
you are asking for many things at once. You should
perform some searches for the things I mentioned
above. After you have all of thins working, you
will need to use OpenGL to visualize everything…