Voltage, current, resistace...

  • Troxi
    31st May 2016 Member 0 Permalink

    Can you add voltage, current and resistance.

     

    Default voltage woud be 220v. Voltage drops on any conductor are depending on the resistance.

    And can you make the battery unmeltable (can not turn into plasma when is heated too much) and its voltage depnds on the heat.

     

    Current would be spark per second.

     

    PS: Sorry for my bad English

    Edited once by Troxi. Last: 31st May 2016
  • jacob2
    31st May 2016 Member 0 Permalink
    This would be a lot of work ... and we'd have to come up with reactions for all the existing electronics (and I assume this new electricity would be able to turn stuff on / off). Such a major change is unlikely to happen unless someone comes up with some really solid ideas and volunteers to program it.
  • The8BitPotato
    11th Jun 2016 Member 0 Permalink

    If this was put in, it would probably make a lot of existing stuff stop working. If this is possible then maybe it could be an option rather than always being there.

  • minecraft-physics
    12th Jun 2016 Member 3 Permalink
    The problem is that to simulate that, you'd need a full-blown electronics simulator built into TPT. Electronics simulators rely on having a known network of components obeying global laws (Kirschoff's voltage and current laws, law of inductance etc.) while TPT is based on an array of isolated particles obeying local laws (particle is in position x, there is SPRK next to particle, therefore conduct).

    For example, in real circuits, current will only flow in closed loops, whereas to simulate the same thing in TPT, you'd need an update function for any current source (like BTRY) that says "Check all possible conducting paths from this particle, if it loops around, then conduct". You'd also need to sum up all the voltage drops across all types of components (resistive, capacitative, inductive) and solve a system of equations as large as there are particles in the circuit (order of 1000 variable) in order to find the currents. All this adds up to a truckload of calculations every single frame to simulate the circuit realistically that would create too much lag to be playable.

    You could theoretically define a fictional set of voltage/current laws that are easier to calculate, but that would just give confusingly unrealistic behaviour that can't really be used for in-game logic, unlike the current SPRK.
  • Sandwichlizard
    12th Jun 2016 Member 0 Permalink

    well said.

  • ChargedCreeper
    12th Jun 2016 Member 0 Permalink

    If you want realistic electronics simulation, then use something like this:

    http://www.falstad.com/circuit/