Jump to content

Fast recalculation of gravity equipotential lines after Planet explosion


webaba

Recommended Posts

Dear all,

I have to find a fast way to compute changes in the equipotential lines as the
result of sudden changes in the local gravitational fields (2D space).
(Caused by the destruction of a planet for example). I could recalculate
everything but it takes too much time for the device on which the
calculation is deployed. The environment has lots of bodies, so an
analytical solution is not to consider.

I compute the level lines, picking a initial point and iterating along the gradient of the gravitational force.


I don't really know where to start, but I'm thinking about a local
method that only propagates changes on a limited range around the
"explosion". If you want to take a look at the origin of the problem,
here is a screenshot of the project, and the link to the related (free) iphone
game.

 

I was also thinking about representing the equipotential lines as Bezier lines and only updating a couple of points instead of redrawing complete exact lines but then I'm not sure 2 lines won't cross eachother since they are interpolated.

 

Thanks for you help, any idea is welcomed !

 

Seb

 

<link removed by mod per rule 7>

 

screen-shot-2013-06-20-at-12-12-58-am.pn

Edited by imatfaal
removal of commercial link
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.