Every Flora system starts with one System and one World. While a System may have many Worlds, by default, Flora's system uses the <body> as the only World.
In the example above, immediately after the system starts, a Agent is created and appended to the World (or <body>).
Worlds carry two properties that directly affect their elements.
- gravity {Vector} default: new Vector(0, 1)
- c (coefficient of friction) {number} 0.01
We can change these defaults after the system starts via the 2nd parameter to the Burner.System.init() method.
We've reversed the World's gravity and increased its friction. Now the block slowly drifts upwards.