
Simulation.createWallBox nil sim.createWallBox(number x1, number y1, number x2, number y2, )Ĭreates a filled box of either the specified walltype or the type of the basic wall at the specified particle coordinates. Simulation.createParts number sim.createParts(number x, number y,, ,, , ) Rx and ry describe the radius of the brush used. Simulation.createLine nil sim.createLine(number x1, number y1, number x2, number y2,, ,, , )Ĭreates a line of of either the user's currently selected type or the type specified at the specified coordinates. Simulation.createBox nil sim.createBox(number x1, number y1, number x2, number y2,, )Ĭreates a filled box of either the user's currently selected type or the type specified at the specified coordinates.įlag refers to particle replacement flags. Nil sim.ambientHeat(number x, number y, number temp, )

Returns a value on the ambient heat map (the temperature of the air at that point). Simulation.ambientHeat number sim.ambientHeat(number x, number y) When ambient heat mode is turned on, the air at the edges of the screen will remain at this temperature. Simulation.ambientAirTemp number sim.ambientAirTemp() Mode numbers are as follows (not currently available as named constants):

Given a mouse position x, y in the window, this function returns the corresponding coordinates in the simulation (taking into account the visibility and position of the zoom window, if applicable). Methods simulation.adjustCoords number, number sim.adjustCoords(number x, number y)Īctually this is more of a UI method than a simulation method.
