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... :)
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.
@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.
how do you detect if there is already a line or an object in processing?
shebotnov 5 days ago
How do you calculate the velocity when 2 objects collide?
gangkill13 1 month ago
Really cool! Cool enough to make a tutorial?
OnlyNands 3 months ago
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!
NobodyLikesAsians 3 months ago
Your balls have the fall-through disease...
TomFromEntropia 7 months ago
Awesome.
DrunkenWaffle 8 months ago
i see you like balls :) nah nut awesome physics! I like it
HaZaRdxScopeZ 8 months ago
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... :)
TLONightmare 9 months ago
Really nice. You need more collision iterations though to stop the overlapping
phiranaguy 9 months ago 4
omg... too amazing...
pufixas 11 months ago
Wat SDL version is this made with?
aglettice 11 months ago
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.
SuperGastrocnemius 1 year ago
this is actually really good. I don't even know how to do collision yet, so this is really good in my eyes.
superkellerman8D 1 year ago
EPIC
TurtlyAusten 1 year ago
You should fix the bug at 1:56 lol
Ilikemustard 1 year ago
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 1 year ago
@EmbraceTheThunder This is what happens in the simulation.
oopolka 1 year ago 15
@EmbraceTheThunder
Probably you didnt realize that becouse the coeficientes are low ( i think)
LordOfDragonMasters 1 year ago
@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
Brucy6666 1 year ago
@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
AstralAbraxas 1 year ago
@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.
MythologicalGames 1 year ago
@EmbraceTheThunder actually, increase ball B's speed a little LESS than the amount lost. =P
not to be picky or anything...
=P
UnpredictableProduct 11 months ago
SDL ? how you make it in SDL ?? o pleasee give link to physic tutorials or something (
4a4ik 1 year ago
nice nice !!!
ollyuzr 2 years ago
nice work!
I need to drop GLUT and learn SDL :D
hebronsawyers 2 years ago
this is awesome man
crazymanny00 2 years ago