Just like ambient heat, and Neutonian gravity (both of which can be turned on and off, we also need an electric charge mode. For this mode you'd have 4 basic charged particles. Proton, Anti-Proton, Electron, Positron. Charges of particles: Electron -1 Positron +1 Proton +1 Anti-Proton -1
Mass of particles: Electron1 Positron 1 Proton 100 Anti-Proton 100
Yes this 100 to 1 proton to electron mass ration is to small of a ratio, but that's because a proton is actually so much more massive than an electron in real life you'd need more electrons than TPT screen would hold to equal the mass of one proton (think BILLIONS of electrons for each proton). But it would just be 100 to 1 for TPT. That means a proton experiencing an electric field would require
You'd also have a Charge Electrode solid type particle who's charge would be equal to its temperature (sort of like setting color filter with temperature) So -273 degrees and +273 degrees would be the range of charges you could assign to it. If you accidentally went too high with the temperature (up to +274 or greater) it would automatically cool itself to +273 before it calculated the charge (otherwise if it took even one frame to recalculate the temperature, you could for one frame a super high charge that would send charged particles off their intended course). As in real life particles with the same polarity as the electrode will be repelled from it, and if different charge will be pulled toward it, and strength of charge on electrode will affect the force it exerts on charged particles (same thing goes with force exerted by charged particles).
You'd also have a Magnet Block solid type particle. As with glass (which passes photons) this block would particles, but it would pass ANY particles (not just certain types), however it would magnetically only effect charged particles. As in real life this is how it would work. The magnetic field represented by this block will either be in toward the screen or out from the screen. It will have no effect on non-charged particles, in motion or stationary. It will have no effect on stationary charged particles. It will only effect moving charged particles. The force it exerts on moving charged particles passing through he block will be based on the polarity and strength of the magnetic field (read above about how I'd set charge on the Charge Electrode, as the Magnet Block would work the same way), the charge on the particle, the mass of the particle, and the velocity of the particle.
Now both of these solids (magnetic and electrostatic) have only a user set value (nothing in TPT would effect them), so in addition to these user value setable form of these solids, that 3 powered versions of each of these exist as well: ON-OFF based on Psilicon and Nsilicon scheme of heat-switch etc. Pulsed similar to ARAY and spark electrode, but (unlike ARAY and spark electrode) activate with each spark and not have a recovery time during which SPRK will not effect it. and a new variety I'll call On While Powered which will ignore the spaces between SPRK on the wire powering it, and thus have a slight delay in response, but it won't ever turn off until it stops receiving SPRK for the same period it takes for there to be 2 sparks on a wire.
Now onto the particle interactions part of this:
electron+proton makes NEUT
electron+positron destroys them both, but releases a new particle, the gamma ray* (which will look like a bright purple photon) at max-temperature.
positron+antiproton makes NEUT again
proton+antiproton makes gamma ray again
*gamma ray, in will travel completely through most softer materials such as wood and coal (yes I do mean through, like PHOT goes through glass) and it will heat each material particle it travels through until it cools down, will be absorbed after traveling some distance through medium materials (STNE, CNCT, etc), and will travel not far at all through hard materials such as metal, iron, uranium, and plutonium (U and Pu are actually 2 of the heaviest elements that occur naturally). Life will not depend on time existed (as PHOT and NEUT do), but instead on how much material penetrated and how hard it was. When life reaches 0, the particle will cease to exist. Gamma ray should also be available as a user selected element from the radioactivity elements set.
electron + any conductive material = no effect (remember SPRK behaves like a positive charge in electronics, as it goes from Psilicon to Nsilicon). Instead it will just bounce off like NEUT and PHOT do with most solids.
proton + any conductive material = SPRK forming at that the point of contact
positron + any material (maybe even include diamond this time?) = gamma ray + proton (assuming the atom just had its electron eliminated, that leaves only a proton left in its core which will fly away, I know not perfectly realistic, but given limitations in TPT...)
antiproton + any material (maybe even include diamond this time?) = gamma ray + electron
any particle + magnet block = it just passes right through (unless it's a charged particle, in which case it will obey the "right hand rule" of electromagnetics)
noncharged particle + charge electrode = no effect (charge electrode behaves like DMND)
charged particle + charge electrode = if a charged particle collides with an electrode of same charge it will bounce off at an angle equal to that which it struck the object (just like a PHOT or NEUT that struck normal solid), but if it is of the opposite charge, it will destroy the particle like VOID
Any charged particle (unless it is a positron or antiproton**) + noble gas = plasma If that particle is an electron, it will (after converting NBLE into PLSM) bounce off and another electron will also fly away (the incoming electron dislodged an electron from the NBLE and ionized it). If that particle is a proton, it will (after converting NBLE into PLSM) turn into a neut and then fly off in the direction it would have bounced anyway (the proton grabbed an electron from the NBLE and became a neutron, leaving the NBLE in an ionized state, thus plasma). A neutron, in this E-charge sim mode, should be assumed to have a mass the same as the proton.
**Refer to description up above, of how antiparticles (antiproton and positron) are supposed to react to ANY particle they touch.
Last particle idea would be a thermo ionic emitter. When heated to over 300C, it will start to emit electrons in all directions. It will emit electrons faster at higher temperatures, which will continue to be true until it melts at 1000C. It should also be conductive, and when passing spark through it, it should cause its temperature to slowly rise to 700C (hotter than normal METL will get when SPRKed).
Charged particles are not to be effected by gravity (and probably shouldn't be effected by Newtonian gravity mode either, though if you are in that mode you likely aren't doing it to simulate electromagnetics).
If the air is set entirely to off, charged particles will move around freely and never disappear (unless colliding with something that should destroy them) . If it is set to anything else (no air vel, no air pres, no air update, or air on) then the particles will lose life (and slow down) and eventually stop and disappear. The velocity of the particle will effect how much life it has left when the air is turned on in any way. Heavier particles will slow down less per distance traveled through air. Lighter particles will slow down much quicker.
A new wall type should also be created. It will create a perfect vacuum (absolutely no air simulation) in the region which is covered by that wall. Charged particles in a vacuum region will behave as if air simulation had been turned off. Great for simulating a vacuum tube operated in a room at normal pressure but everything inside is at vacuum pressure. This wall should be invisible at all times that the particle creation tool is being used. Only when the wall creation tool is being used should this wall type be visible.
Newtonian gravity and ambient temperature were also additions of new modes, just like what I'm suggesting here. I'm waiting for a reply from the TPT developers to comment on this thread. I'm not interested in user-feedback when I'm suggesting something that will be most easily answered by a TPT dev, such as suggestions for new TPT ideas.
Just saying, this isnt going to be suggested, and still you should at least try to code it so you can see the difficulty of it, really, its ****ing hard
@Lockheedmartin(View Post) As being part of the normal TPT world, yes. But I'm talking about an entire separate mode of TPT in which magnets and such would become VERY usefull. Black holes aren't very useful by themselves, but they sure are useful when Newtonian gravity is turned on. And if you will have charged blocks for moving particles, you might as well have magnetic blocks too. Not sure what you have against magnets. They would have exclusive use in E-charge sim mode, just like black hole has exclusive use in Newtonian gravity mode.
Don't need to be pissy either, user25. He put a lot of work into his suggestion, but I doubt either of you have spent a great deal of time pouring over the game's code to figure out how it works.
Fields for basic charges would be possible, but it would be a great deal easier to implement them for single particles. Otherwise they would be limited to 4x4 pixel blocks, which would be horribly inefficient. Even 2x2 pixel blocks would, and any smaller would defeat the point of using another field array.
The reason gravity and ambient heat were added was because they're both diabolically simple. Gravity is just a few functions that calculate optionally using an additional field array, and ambient heat is nothing more than a copy of the pressure array that stores heat instead.
The two of them require barely any calculation to function, and so they can be added with very little grief. But what you're suggesting is terribly complex. Adding it to the game would probably be easy, but you'd have to add practically five or six new variables to -every- new particle, and lag for calculating those would increase in a predictable way.
If you can think of a simpler way to implement charges into the game, have at it. But this is massively complex. @__@
*edit: ...Also. Most of the issue I have with magnets is that they're essentially identical to gravity in function, but have poles. If you can think of some fancy way to implement anything more complex than monopoles (which is, in essence, gravity) without implementing moving solids, then have at it. :P