little demo of a collision system with gravity. Songs are from newgrounds: (1) "The Dust and the Devil" by primal-instinct (2) "Ode to Nazi Zombies" by Khalillondon
1,000,000 particles with gravitational attraction and spring repulsion. It's awesome to see the particles crunching and colliding. At the end there's a bug where particles can get arbitrarily high ...
This program written in java uses a barnes-hut tree to simulate gravitational attraction. You can find the applet online at http://mathandcode.com/programs/javagrav/
Well... I found a cool math thing - circle inversions. It turns out that it's easy to take the circle inversion of a polar graph - you just take the inverse of the radius (this is the unit circle w...
The stick with the red trail is rotated using euler interpolation. Basically, in a left handed coordinate system, euler angles rotated Z*Y*X*ColumnVector, we have angles (x,y,z) and (a,b,c). If you...