- #1
funkpun
- 4
- 0
Hi all. I've been playing around with a simple gravity simulator I wrote in Processing. I have a version that impliments a second degree modified Euler integration scheme on particles in three dimensions. Attached is a screen strip of screen captures showing the first few moments of the simulation.
What I find interesting/weird is that the direction of rotation as the sheet collapses is always the same -- the top falls forward, the bottom falls back (particles become more and more cyan as they move forward).
I don't believe this is a programming issue, as the documentation for the randomize function says: "Each time the random() function is called, it returns an unexpected value within the specified range..."
I'm curious if there might be a physics or numerical reason for this tendency.
I'm happy to share my code, if you want to see it -- although it's still extremely messy and gnarly and such.
Cheers,
Fp.
What I find interesting/weird is that the direction of rotation as the sheet collapses is always the same -- the top falls forward, the bottom falls back (particles become more and more cyan as they move forward).
I don't believe this is a programming issue, as the documentation for the randomize function says: "Each time the random() function is called, it returns an unexpected value within the specified range..."
I'm curious if there might be a physics or numerical reason for this tendency.
I'm happy to share my code, if you want to see it -- although it's still extremely messy and gnarly and such.
Cheers,
Fp.