Ball and Line Physics
Loading...
3,124
Loading...
Uploader Comments (Seoryn)
see all
All Comments (10)
-
Why does it fall through occasionally?
-
so fun to watch. i think that would be quite fun to play with
-
No source on your website :(
Could you please send me the source?
Again, I have to say its very nice work
-
Very nice :) Im going to read the src now ... :)
5*s
Loading...
Hey how about a little collision detection between the balls? Shouldn't be too hard. The maths for collision detection between balls can be a pain but maths is my best subject. Message me if you want help.
sambroughton 3 years ago
Thats what I thought when I first tried it, but it turns out there's a lot more to the collision than just recalculating vectors. I made another video where the balls bounce off each other but it's very hard to write an efficient and consistent collision detection algorithm. Its more to do with programming skill than mathematics (math is my strong suit too). Feel free to take my code and show me up though, I'd love to see it done and if you think you're up to the challenge go for it!
Seoryn 3 years ago
Way Cool!
Now, excuse me whilst I read your code.
rubin427 4 years ago
Ha! Well, thats what its there for!
Seoryn 4 years ago
It seems that you're using JCreator in your videos so I'll tell you how to use the built in one. Follow this once your in the project you want:
Configure-->Options-->Tools-->New-->Create Jar File
Then a new tab will appear under the tools thing( on the left browsing window ). If you click it it will show you a bunch of options for making jar files. Changes the Arguments line to: "cfe $[PrjName].jar $[JavaClass] *.*" (without the quotes).
Seoryn 4 years ago
You can run the tool by going to Tools-->whateveryounamedurtool in the main window.
Seoryn 4 years ago