Added: 2 years ago
From: oopolka
Views: 7,936
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (27)

Sign In or Sign Up now to post a comment!
  • how do you detect if there is already a line or an object in processing?

  • How do you calculate the velocity when 2 objects collide?

  • Really cool! Cool enough to make a tutorial?

  • Really really impressive. Great job! Can we see the SC? I'm just starting out and would love to see how you made this. Thx!

  • Your balls have the fall-through disease...

  • Awesome.

  • i see you like balls :) nah nut awesome physics! I like it

  • Nice, I'm starting at SDL by these days, still don't know how to make collisions with dynamic objects, just pre-defined ones. But it's really interesting how this works, you can use basic Physics to do these things... I guess that if I add mass and momentum to my objects this idea will come to me... :)

  • Really nice. You need more collision iterations though to stop the overlapping

  • omg... too amazing...

  • Wat SDL version is this made with?

  • Hi, I'm currently designing a photorealistic Pong game (please see my youtube videos and my blog: Ray Tracey blog) which only uses spheres (the walls are also made out of huge spheres) but I am experiencing difficulty in making the physics work and was wondering if you could help me. I would greatly appreciate it. 

  • this is actually really good. I don't even know how to do collision yet, so this is really good in my eyes.

  • EPIC

    

  • You should fix the bug at 1:56 lol

  • Looking good. Those are some really bouncy balls though.

    .

    Here's a tip to make it look more realistic:

    When the ball hits an obj, rather than just changing the direction of the velocity, change the speed as well.

    When an object in real life hits another object, some of the energy is transferred, causing the falling object to lose speed.

    .

    in other words:

    When ball A hits a wall, reduce ball A's speed.

    When ball A hits ball B, reduce ball A's speed and increase ball B's speed by the amount lost.

  • @EmbraceTheThunder This is what happens in the simulation.

  • @EmbraceTheThunder

    Probably you didnt realize that becouse the coeficientes are low ( i think) 

  • @EmbraceTheThunder You would also have to loss a % amount of energy per hit, which, as energy is lost to its surrounding as heat light and sound. So if you have all of the left over energy transferring from ball A to ball B then they will move forever and never slow down. which, in my opinion needs to happen more in this simulation because the balls are too bouncy

  • @EmbraceTheThunder if the speed didn't get reduced they'd bounce like crazy forever. I think they should get decreased a tad bit more too honestly though

  • @EmbraceTheThunder They're so many more factors you haven't mentioned in your "tip". However, the only thing I see wrong is the balls don't lose as much momentum as they should when they bounce. It's like they only loose less than 1% of their total momentum each bounce.

  • @EmbraceTheThunder actually, increase ball B's speed a little LESS than the amount lost. =P

    not to be picky or anything...

    =P

  • SDL ? how you make it in SDL ?? o pleasee give link to physic tutorials or something (

  • nice nice !!!

  • nice work!

    I need to drop GLUT and learn SDL :D

  • this is awesome man

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