For my midterm I wanted to get to understand better the use of physics in processing, so I decided to try to simulate a Dandelion* behavior in the wind. (I used Processing with Toxiclibs libraries).
*A dandelion flower head composed of hundreds of smaller florets (top) and seed head (bottom).
How they flies depends on the amount and intensity of the wind.
I can only run the code with no more than 8 dandelions, otherwise the sketch runs really slow. For sure I have a problem in my code, I expect to fix that later.
.Try to make the more delicates movements of the florets when the wind is applied, I’m not sure yet how, because now they reach their position because of the repulsion between them. So they have the same features. I should find another way to make them reach their position and have random weight and reaction to gravity.
.Unlock the florets instead of draw new florets when is windy.
.Try to make it work blowing throw a microphone
.When florets fly away play with 3D or depth sensation.
.Optimize the code to have more dandelions without killing my computer.
As I said I used Processing with Toxiclibs.
Toxiclibs is an independent, open source library collection for computational design tasks with Java & Processing developed by Karsten Schmidt. Toxiclibs haves lots of libraries, for my midterm I’m using:
toxi.physics: is a basic 2d and 3d particle physics engine with Verlet integration.
Verlet integration is a numerical method used to integrate Newton’s equations of motion. It is frequently used to calculate trajectories of particles in molecular dynamics simulations and computer graphics.
Of this package I’m using:
VerletParticles2D: An indicidual 3d particle for use by the VerletPhysics and VerletSpring classes.
VerletPhysicas2D: 3d particle physics engine using Verlet integration.
VerletSpring2D: A spring class connecting two VerletParticles in space.
.2d/3d vector maths
.AABB, sphere, plane, triangle, ray
.OBJ and STL exporters (able to support massive files, with optional STL colour support)
With the help of: Daniel Schiffman toxiclibs codes and Ricardo Dodds how explain me (again) the world of physics.