ok i found the first bug. and that is also the reason why it didnot worked at first time.
when you load your app and click on the left mouse first (just a click) the right mouse will not create any balls anymore.
only if you draw a line or click right mouse button at app start it will work until you perform a click only on the left mouse button!
so a click on the left button (without drawing a line) will create this bug!
@wonder , you really make progress over time, I'm following you since you appeared here, and you have very clean and nice coding style, so, keep it up!
btw, this example works great on very slow pc, if that helps at all...
It is not good to give bad news, but ...
the previous version was better.
Moving seems now less "natural", the ball can not roll without bouncing. Also it is as if it were tied to a wire (a line, of course).
I know, I know... I think I got the right formula, only the values are wrong... Don't give up, Bruno, don't give up...
By the way, the balls do not roll, they slide... there is no concept of "rolling" in my program. Nonetheless, sliding (zero friction) or rolling is the same thing! Think roller blades vs ice skating.
In previous version, if you had two lines joined with different slopes like image attached, the ball (starting on first line) braked down when arrived at second line
Very creative. Tried all your examples they all seemed to work as you described them. I did get one unexpected result. When I drew two lines to form a peak like upside down "V", the balls would bounce to the right or left except when I hit the exact point of the peak. That ball passed through the peak like it was not there. If one of the lines slightly overlaps this does not happen.
One thing, nobody stated, but I'm sure everyone has noticed, even you, Bruno, New Balls do not take into account previous existing balls, so if we set the lines to create a funnel or V, the balls do not stack up
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.