Randomised Bead Machine/Pachinko Problem.
7 views (last 30 days)
Show older comments
Hello, I am writing code for Bead Machine problem and while there is no problem with standard model I have some issues with model in which nails are distributed randomly. While horizontal randomization can be resolved by having random chance of ball falling to the right or to the left using random number generator, vertical randomization doesn't look as obvious for me. Do you have any ideas how to implement vertical randomization?
0 Comments
Answers (1)
Walter Roberson
on 5 Mar 2018
The ball does not simply fall to one side or the other of the peg: the ball bounces off the peg, with the peg vibrating and acting as a bit of a spring. The curved upward bounce might intersect the bottom or side of a peg above the first, leading to a spring-pushed bounce away or down. With the vertical positions not always the same, the velocities obtained are not always going to be the same....
So you model in the acceleration and spring effects and do path planning and a bunch of testing for for intersection...
5 Comments
Walter Roberson
on 5 Mar 2018
Are the scattering cylinders perfect reflectors? Such that upon scattering, each particle keeps 100% of its momentum but is scattered according to standard angle-of-reflection criteria? And there is no fluid or gravity to consider? What size are the cylinders compared to the particles? Are either one considered points for this purpose?
See Also
Categories
Find more on Animation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!