Editor
From the left panel you can open the Editor.
You can tweak sand name, visuals, physics and movement behavior and finally Reaction rules. You can create new sand, and remove sand.
Physics
Move To
The simulation will initially try to move sand from A to B. If it cannot, it will query for an alternative position. Based on empty space around, sand will move there instead. This is dependent though on the checkboxes you've selected for your sand material.
Basic sand material will try to move diagonally if it cannot move to the destination. Water can attempt movement horizontally as well. Or to all directions.
You can inspect sand by removing all the Move To checkboxes and see it piling as pillars.
Or see regular sand as piling in a pyramid like shape.
.
Sand which attempts to move to all directions, will slowly spread even if its liquidity is 0.0. But to allow more liquid like movement, tweak the physics parameters instead.
Physics Parameters
Parameter | Description |
---|---|
Gravity | How gravity force affects sand (-1.0-1.0) |
Force | How external force affects sand (-1.0-1.0) |
Radius | How large sand is (affects movement & visuals), (0.5-3.0) |
Density | How dense sand is (affects physics forces) |
Liquidity | How liquid sand is (affects physics, 0.0 == solid, 0.0-2.0) |
Viscosity | How honey like liquid sand is (0.0-100.0) |
Drag | How fast sand slows down over time (0.0-1.0) |
Reaction
Plain sand will only behave like liquid or solid, and will not interact with other sand. For this we've implemented the Rule Editor. You can access it from the Reaction section in the editor.
Add, or remove Characteristics for your sand to bundle behavior between various sand. For example, both lava and
fire can have a characteristic BURNS
. Both ice and water can COOLS
.
In the Rule Editor you can then add behavior to sand based on whether they touch other sand.