Jump to content

2-d Gravitational Simulation


Nambiar
 Share

Recommended Posts

Hello there. 

 

Since I was bored one fine afternoon, I decided to make a 2D gravity simulation. 

 

GravSimSC1-1024x459.jpg

 

It can be found here - http://gamedolph.in/experimentlist/2-d-gravitational-systems/

 

It uses nothing but the simplest phaser objects and p2 to calculate the forces. Compared to the other simulations I've made, the presence of p2 meant I didn't have to write all the integration steps and hence concise code. (Its still very large but that's due to the bloat of additional features).

 

 

Link to comment
Share on other sites

Man that is really cool. 

 

For me personally, I am fascinated by these computational structures. Reminds me of the old Uncontrol/Deconcept/Bit101 days and why I am actually interested in programming. I just spend 98% of my life on other stuff :(

Great!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...