Re: roulette graphics
- Posted by Al Getz <Xaxo at aol.com> Apr 12, 2007
- 448 views
lins7 wrote: > > Hi, I am writng a game using roulette with sector tsrgetting .. > Have anyone done any graphics of a rotating wheel and ball? > It would save me a lot of hours.. any helpers ? chris april13 2007 Australia Hi there, I did a 'bouncing balls' simulation program where balls bounce around and hit each other within the confines of a large circle. Each time they hit something they make a 'chirp' depending on various factors, and their angle of reflection depends on a number of factors too. The angles were simplifed to make the calculations simple, so it partly depends on how accurate you want the system to emulate real life. If you are after super true to life simulation, you'll have to model the dynamics of the whole system, which can get quite involved. You'll have to take into account the shape of each sector of the wheel and height differences etc, and make the ball bounce accordingly. The bouncing balls simulation is one of the demos in my WinClass library which is in the archives. When i dont feel like doing anything else sometimes i watch the bouncing balls to see if there is any emerging pattern. It's interesting to see how they behave from a given starting point. Sometimes they group and sometimes they diverge apart. There are more things to consider however with a ball in 3d space. Perhaps you can limit the ball to 2d space and do something that still looks real in a 2d field. Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."