Fire simulation is an optional feature of nodes, which can allow some nodes to catch on fire.
To enable fire simulation on a node, it needs to have a flashpoint, corresponding to it’s autoignition temperature.
Nodes can transfer heat to nearby nodes through conduction, if enabled, or radiation, when the node is on fire.
Wheel nodes are also tied in to this system, getting heated up by fire causing the brakes to heat up and potentionally the tires to blow up.
Node arguments
A node that is “vaporised” will have a lower flashpoint and a much higher burn rate until it condenses again.
Vaporisation happens when the node’s container beam gets broken.
Beam arguments
Breaking the beam will rupture the container, allowing the nodes inside of it to be “vaporized”.
It will also produce fuel spill particles and notify the user via UI that the vehicle’s fuel tank has been ruptured.
When used together with the containerBeam property, the UI will not be notified about fuel tank rupture.
Can be used for jerry cans and such, when you want to have fuel spill particles on break outside of the vehicle’s fuel tank.
Simple Example
A section of the vehicle’s interior carpet nodes that can catch on fire
{"chemEnergy":1000,"burnRate":0.52,"flashPoint":300,"specHeat":0.8,"smokePoint":150,"selfIgnitionCoef":false},
["f1r", -0.316, -1.08, 0.233, {"nodeWeight":7.0, "group":["bastion_body","bastion_floor"]}],
["f1l", 0.316, -1.08, 0.233, {"nodeWeight":7.0, "group":["bastion_body","bastion_floor"]}],
{"chemEnergy":false,"burnRate":false,"flashPoint":false,"specHeat":false,"smokePoint":false,"selfIgnitionCoef":false},
Advanced Example
A vehicle’s fuel tank nodes with various fire properties
{"chemEnergy":50,"burnRate":1.2,"flashPoint":220,"vaporPoint":97,"specHeat":0.03,"selfIgnitionCoef":0.03,"smokePoint":220,"containerBeam":"fuelTank"},
["ft1", 0, 1.06, 0.34],
["ft1l", 0.34, 1.06, 0.34],
["ft1r", -0.34, 1.06, 0.34],
{"selfIgnitionCoef":false,"selfCollision":false},
["ft2", 0, 0.8, 0.32],
["ft2l", 0.39, 0.8, 0.32],
["ft2r", -0.39, 0.8, 0.32],
["ft3", 0.0, 0.93, 0.33],
["ft3l", 0.37, 0.93, 0.33],
["ft3r", -0.37, 0.93, 0.33],
{"chemEnergy":false,"burnRate":false,"flashPoint":false,"vaporPoint":false,"specHeat":false,"selfIgnitionCoef":false,"smokePoint":false,"containerBeam":false},
The beam that activates the fuel tank rupture
["f4l","f4r", {"name":"fuelTank","containerBeam": "fuelTank"}],