Jump to content

Fast recalculation of gravity equipotential lines after Planet explosion

Featured Replies

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

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.