Particle Gravity

Community Forums/Showcase/Particle Gravity

Lukasha(Posted 2006) [#1]
Here is the code of my particle-gravity program.
Copy it and try out!!

With "anzahl" you can change the number of particles,
speed and startspeed should be clear,
and with barriere you can change the behaviour of particles, when they collide.

Please ask me questions if you want to.
And if you have ideas to improve it, tell them to me.
Every kind of feedback is welcome!!



Sorry, it's not structured very well *lol*


Damien Sturdy(Posted 2006) [#2]
[ CODEBOX ] [ /CODEBOX ] :-)


Lukasha(Posted 2006) [#3]
Hi, ok , here's another version of the program ( a bit better, I think).
But has anyone an idea how to hold the particles on the screen?




Please help me to improve it! *g*


thx


Damien Sturdy(Posted 2006) [#4]
Lol, lets work on that a bit ;)

1) Edit and blank out the above post.
2) Add those tags to the original post, removing the spaces :)

I can't check the code right now as i'm at work, but do the above and you'll get more replies :)


SillyPutty(Posted 2006) [#5]
Quite a neat code snippet :) Good Work.


Lukasha(Posted 2006) [#6]
Well,
I've made another change.
It should be more realistic, because now the distance
counts exponetial ( I am not good in physics, but it should be right).
So the particles build nice constellations, which you can change by changing the parameters.
Try out, and you know, if you can do this better, please show it to me!