Deviation Actions

wonderwhy-ER's avatar

Collision Resolution Study 1.1

By wonderwhy-ER
Well not that I am completely satisfied with performance of collision detection I am off to collecting various collision resolution schemes and other stuff that comes with them (simulation integration schemes).

How to use
Just click, hold and move mouse to spawn balls, rollover components to see hints about them

Schemes I used here

Firstly my older code that dates back to my experiments with Ball World [link] back in 2007
Back then it was too slow to see how unstable it gets sometimes.

Second scheme is Position Verlet, very simple and more stable then my code, still easily goes crazy at around of 1k or more balls. You can see nice Java example here [link]

I plan to add more schemes in future.

So far it seems that in such cases it is physics stability that becomes a bottleneck and not the performance :) Hmm hmm :) Also as I am lazy and it is a testing builds it contains a some of unnecessary code like system energy calculation that eats up performance. So it's not at its best in that sense.

Update
Small change, tried adding other model but so far failed,
aside from that thought that it would be good to see how unsatisfied situation is. So added coloring to balls that shows how much penetrations by other balls they experience this frame. For Verlet it also represents how much energy is emitted by them this frame to push out those other balls :)
Image details
Image size
1200x750px 43.8 KB
Published:
© 2010 - 2021 wonderwhy-ER
Comments66
Join the community to add your comment. Already a deviant? Log In
InfestedMatt03's avatar
i turned it down to 0 balls

it crashed :/
InfestedMatt03's avatar
IRAwarrior's avatar
Gravity: 0.3 + Amount of balls: 800 = Boiling effect!
Igloo-Australia's avatar
50K balls 0 gravity and computer and game are still alive o.o
wonderwhy-ER's avatar
Yeah, I did crazy stuff there :D
vkremennaya's avatar
SO... MANY... BALLS... oh wow it got stuck after 50k. XD
wonderwhy-ER's avatar
Hehe, thanks. And for :+fav:'s too :)
vkremennaya's avatar
XD np. Keep up the great work!!! I find hours of enjoyment on the little flashes :3
wonderwhy-ER's avatar
vkremennaya's avatar
np... TOWER STACKER FTW
vbcnxm's avatar
heh, it crashed with 1772 balls at 0 gravity
wonderwhy-ER's avatar
Heh :) Browser crashed?
vbcnxm's avatar
no, not quite, only the game/test did, I was still able to browse around
wonderwhy-ER's avatar
Ouh, which browser do you use?
vbcnxm's avatar
I'm using internet explorer, the test/game just went blank with an exclamation point, crashing the test, but while crashed and crashing, I was still able to open new tabs, browse off of them, and scroll on the page
wonderwhy-ER's avatar
Heh, interesting. I do not use IE for quite a while, just checking that my stuff works there from time to time and that's it :) Interesting how it behaves when Flash starts to use lot of resources and look as if it froze.
HeliacWolf's avatar
АВфыаы ааа это такая забавная игрушка *____* супер 8D
wonderwhy-ER's avatar
Спасибо :) С наступающим новым годом тебя, побольше тебе вдохновения и творчества :)
HeliacWolf's avatar
И тебя тоже с наступающим)) *_______*
wonderwhy-ER's avatar
Как празднуешь? С друзьями? С родственниками?
HeliacWolf's avatar
С родственниками)
wonderwhy-ER's avatar
Join the community to add your comment. Already a deviant? Log In