wonder Expert Licensed User Longtime User Nov 29, 2016 #1 One gazillion bugs in this demo, lots of trial and error, work-in-progress... Draw lines with left click, drop balls with right click. Attachments something.jar something.jar 320.8 KB · Views: 724 something 2.jar something 2.jar 320.9 KB · Views: 713 almost working right - no bounce.jar almost working right - no bounce.jar 326.7 KB · Views: 676 almost working right - BUGGY bounce.jar almost working right - BUGGY bounce.jar 326.7 KB · Views: 700 itWorks!.jar itWorks!.jar 321.7 KB · Views: 691 Last edited: Nov 29, 2016
One gazillion bugs in this demo, lots of trial and error, work-in-progress... Draw lines with left click, drop balls with right click.
ilan Expert Licensed User Longtime User Nov 29, 2016 #3 just tried it but no balls are falling when i click on right mouse button. ok downloaded again and it works. can you make the ball keep rolling after it stopped bouncing? Last edited: Nov 29, 2016
just tried it but no balls are falling when i click on right mouse button. ok downloaded again and it works. can you make the ball keep rolling after it stopped bouncing?
ilan Expert Licensed User Longtime User Nov 29, 2016 #5 wonder said: Are you on a Mac? Click to expand... 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 said: Are you on a Mac? Click to expand... 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 Expert Licensed User Longtime User Nov 29, 2016 #7 ilan said: can you make the ball keep rolling after it stopped bouncing? Click to expand... I wish I knew how... It's killing me... Argggghhh!!!! I *effing* love/hate physics!!!! I will find out, eventually, so no worries...
ilan said: can you make the ball keep rolling after it stopped bouncing? Click to expand... I wish I knew how... It's killing me... Argggghhh!!!! I *effing* love/hate physics!!!! I will find out, eventually, so no worries...
Jaames Active Member Licensed User Longtime User Nov 29, 2016 #8 @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...
@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...
wonder Expert Licensed User Longtime User Nov 29, 2016 #9 Jaames said: 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! Click to expand... Thank you so much!! That's really motivating!!! Very kind of you! Regarding this physics project, I'll be doing some pen and paper investigation while watching youtube physics lessons.... So, wish me luck! Last edited: Nov 29, 2016
Jaames said: 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! Click to expand... Thank you so much!! That's really motivating!!! Very kind of you! Regarding this physics project, I'll be doing some pen and paper investigation while watching youtube physics lessons.... So, wish me luck!
Jaames Active Member Licensed User Longtime User Nov 29, 2016 #11 wonder said: I'll be doing some pen and paper investigation, with some youtube physics lessons.... So, wish me luck! Click to expand... Sounds great, the Box2d is cool, but why not explore, there is great world of physics out there..
wonder said: I'll be doing some pen and paper investigation, with some youtube physics lessons.... So, wish me luck! Click to expand... Sounds great, the Box2d is cool, but why not explore, there is great world of physics out there..
wonder Expert Licensed User Longtime User Nov 29, 2016 #12 Jaames said: Sounds great, the Box2d is cool, but why not explore, there is great world of physics out there.. Click to expand... True! If Box2D is Newton, then I want to be Einstein and write my own physics! Hahahah!
Jaames said: Sounds great, the Box2d is cool, but why not explore, there is great world of physics out there.. Click to expand... True! If Box2D is Newton, then I want to be Einstein and write my own physics! Hahahah!
wonder Expert Licensed User Longtime User Nov 30, 2016 #13 Alright, here's another version (also added to the first post). Still not exactly what I'm looking for. @ilan, the bug is still there, I was too lazy to fix it. Attachments something 2.jar something 2.jar 320.9 KB · Views: 653
Alright, here's another version (also added to the first post). Still not exactly what I'm looking for. @ilan, the bug is still there, I was too lazy to fix it.
LucaMs Expert Licensed User Longtime User Nov 30, 2016 #14 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).
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).
wonder Expert Licensed User Longtime User Nov 30, 2016 #15 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.
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.
I inakigarm Well-Known Member Licensed User Longtime User Nov 30, 2016 #16 LucaMs said: It is not good to give bad news, but ... the previous version was better. Click to expand... 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 Last edited: Nov 30, 2016
LucaMs said: It is not good to give bad news, but ... the previous version was better. Click to expand... 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
wonder Expert Licensed User Longtime User Nov 30, 2016 #17 Alright, I'm almost there!! Two more demos added to the first post, "No Bounce" and "Buggy Bounce". A few more days and *hopefully* I'll be able to pull this off!
Alright, I'm almost there!! Two more demos added to the first post, "No Bounce" and "Buggy Bounce". A few more days and *hopefully* I'll be able to pull this off!
Z Zakerg Member Licensed User Longtime User Dec 2, 2016 #18 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.
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.
Cableguy Expert Licensed User Longtime User Dec 2, 2016 #19 very nice!!!! 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
very nice!!!! 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
wonder Expert Licensed User Longtime User Dec 3, 2016 #20 Zakerg said: I did get one unexpected result. Click to expand... The collision detection is still quite rudimentary... I'll be working on it. Cableguy said: Balls do not take into account previous existing balls Click to expand... True, the aim of this simulation is solving the ball/plane interaction. Nothing more for now. UPDATE: Alright, I think I got the collision solving figured out!!! See "itWorks.jar" on the first post.
Zakerg said: I did get one unexpected result. Click to expand... The collision detection is still quite rudimentary... I'll be working on it. Cableguy said: Balls do not take into account previous existing balls Click to expand... True, the aim of this simulation is solving the ball/plane interaction. Nothing more for now. UPDATE: Alright, I think I got the collision solving figured out!!! See "itWorks.jar" on the first post.