Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Ball and Line Physics

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,124
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 20, 2007

This is a physics simulation I wrote in java that bounces balls off lines!

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (Seoryn)

  • 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.

  • 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!

  • Way Cool!

    Now, excuse me whilst I read your code.

  • Ha! Well, thats what its there for!

  • 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).

  • You can run the tool by going to Tools-->whateveryounamedurtool in the main window.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • 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...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more