|
|
|
|
#1 |
|
Senior Member
|
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. |
|
|
|
|
|
#2 |
|
Senior Member
|
Neat stuff, but why does the white particle sometimes just automatically shift to another location?
|
|
|
|
|
|
#3 |
|
Senior Member
|
oh, I guess once it reaches the green particle, it resets.
|
|
|
|
|
|
#4 |
|
Senior Member
|
Yes, because otherwise the next frame c1a and c2a will be divided by 0 and then the scope goes crazy.
|
|
|
|
|
|
#5 |
|
Account Closed
Join Date: Apr 2001
Posts: 2,360
|
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 |
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
|
Nice coding job.
|
|
|
|
|
|
#7 |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
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.
|
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
|
or that is explodes
I like explosions.
|
|
|
|
|
|
#9 |
|
Account Closed
Join Date: Apr 2001
Posts: 2,360
|
hooray for explosions that don't makes sense
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|