Added: 4 years ago
From: Seoryn
Views: 3,087
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Is there any friction between the balls and the background?

  • maybe link of this program

  • nice dude

  • My nuts hurt watching all these balls slap into each other

  • great work!

  • Ha this is a great program. You could if you had the time make a game out it. Solving puzzles with a certain amount of balls :D

  • Great program :) Is the enery on the top left total energy of all particles?

  • Ha no, it should be though. I programmed it in before I knew what energy even was (by physics standards). I think its the magnitude of one of the balls velocity...can't remember.

  • Very good, this is the kind of program I'm trying to make.

    I notice at 1:05 those 2 balls stick together as they go to the top right, as if they have coalesced.

    I'm not sure how you set the frame rate cause if balls are moving fast, you can't plot them pixel by pixel, but need a gap.

    Suppose frame rate was 10 frames per second, then every 0.1 secs you need to repaint screen, so you still need the mathematical description of the ball action

    I've sent you a message if you want to read it. Thx

  • Yeah, the algorithm I use isn't exactly perfect I guess. Theres actually no pixel by pixel plotting going on (although the motion is simulated on a single point). All the collision detection and rebounding is calculated mathematically to estimate when in time a collision will occur.

    Of course, all the code for this is really old and I wrote it before I understood the concept of documenting your code/leaving friendly comments.

    btw, I don't think I got your message...

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