- Create a System._update() function to iterate over items and update their properties.
- Create System._draw() and System.getCSSText() functions to update items' style properties and render them in the browser's viewport.
- Add requestAnimFrame to create an animation loop.
Particle System + Repellers
Particle System + Attractors
In the above example, we have a fixed, third-person perspective of our World. But Flora can also provide a first-person perspective from the point of view of an Agent. Setting 'controlCamera' to 'true' on an agent will force Flora's camera to track that agent. Of course, there can only be one agent controlling the World's Camera.