Nature of code 3D
Chapter 6. Autonomous Agents
I did this mostly to learn something more about 3D programming and Three.js, while enjoying the beautiful work of Daniel Shiffman again (I had already read his book based on Processing). All this is reeeeeeally basic and could be greatly improved. Comments and pull requests are very welcome: please open an issue.
TODO: Create a GPGPU version of some examples, using the GPU to calculate motion.
TODO: Animate the trails using a solid 3D line with materials and shadows (instead of a basic webgl line or a THREE.MeshLine by @thespite).