|
Ball physics |
Johan Halmén
Member #1,550
September 2001
|
{"name":"612168","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/5\/254edda42748948b8d549a23dfe5d40e.png","w":1022,"h":675,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/5\/254edda42748948b8d549a23dfe5d40e"} A simulation where I drop a ball (of size 0) and have it bounce against eight black pegs to see where it lands. The bottom edge goes through the colour spectrum. Each pixel of the image is a starting position for the ball. The starting position is coloured by the position where the ball crosses the bottom edge. If the ball goes outside the left or right edge, the colour fades to black. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
GullRaDriel
Member #3,861
September 2003
|
Doesn't it miss a bit of horizontal propagation ? "Code is like shit - it only smells if it is not yours" |
Johan Halmén
Member #1,550
September 2001
|
What do you mean? The propagation is in the colours. F.i. each yellow pixel in the image is a starting point where the ball travels through collisions to the horizontal spot on the bottom edge, where the colour is yellow. You see a lot of yellow areas above the yellow spot, but also further to the right, above the fourth and the fifth black peg. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
GullRaDriel
Member #3,861
September 2003
|
I mean that It's only propagating vertically where the ball have fallen. It should be also expanding to the surroundings, which I was implying by 'horizontally' "Code is like shit - it only smells if it is not yours" |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Interesting experiment. I might be able to reproduce it with my own ball simulator. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Johan Halmén
Member #1,550
September 2001
|
GullRaDriel said: It should be also expanding to the surroundings, which I was implying by 'horizontally' What surroundings? If the ball flew off the right or left edge before reaching the bottom level (y coordinate 650), the starting point was painted black. And I do have an error in the collision routine. At a vertical speed near zero, when the ball should just roll along the surface of the peg, it suddenly falls through the peg. It's like I'd need a different routin for collision and for rolling on the surface. The collision routine doesn't simulate rolling on the surface, when the collision speed is zero and distance is zero. <edit /> Some more images: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
|