This demo uses global vars to simulate the movement of a charged particle in promixity to two other particles: a postively charged one and negatively charged one.
In this preset, the positive one is red and the negative one is green. Using vector addition the white particle is moved around. I also made three scopes which draw the different components of the vector.
Everything in the preset is customizable in the first 'control scope': the movement of the two charged particles, their charge and the charge of the white particle.
You'll also need Texer II.
The next challenge will be to make this work in 3d.
Electromagnetic Demo (for AVS2.70)
9 posts
Neat stuff, but why does the white particle sometimes just automatically shift to another location?
oh, I guess once it reaches the green particle, it resets.
Yes, because otherwise the next frame c1a and c2a will be divided by 0 and then the scope goes crazy.
i don't understand what exactly i am looking at... what is the white dot doing in accordance to red and green?
edit: oh... ok i get it
edit: oh... ok i get it
Nice coding job.
Couldn't you make it so that when the white particle hits the green one it gets a negative charge and thus gets attracted to the red particle, then you wouldn't have to reset it.
or that is explodes 🙂 I like explosions.
hooray for explosions that don't makes sense