Request: Gravity, apply force

Hi, I'm having problems with applyForce command.
I'm trying to create a geological environment that contain some gravitational anomalies for my graduation project.
I disabled gravity and used applyForce but couldn't achieve anything.

Can anyone help me out with some tips ?

Here is an image of what I want to do.

Attachment:
gravity.jpg
gravity.jpg [ 24.69 KiB | Viewed 609 times ]
What you want to do here is have full support for fields; this would be a significant addition to the engine. I'm not saying it's impossible, but it's a reasonable amount of work.

The way you'd want to do it, roughly, is to store potentials on a grid that covers your world. To calculate those potentials, you'll have to use the standard formulas for gravitational potential due to an object; for polygons, these can get pretty nasty, so you may want to use some approximation. If you only need these potentials due to static objects, you can do a very detailed grid and precompute it; otherwise, you'll have to figure out some way to do the computations pretty quickly while the simulation is happening.
Force fields (other than uniform gravity) will probably never be part of the main Box2D library. They are way too application specific. That said, such things can be put into the contrib directory, at minimum to serve as an example.

As it is, you can certainly apply any force using applyForce. So it is a supported feature, it is just up to you to compute the correct force.
First of all thanks for your replies.
It looks like if I compute gravity using formulas according to the 3d shapes then applyForce will work smoothly.

Here is an example formula for sphere:

http://www.earthsci.unimelb.edu.au/ES304/MODULES/GRAV/NOTES/sphereeq.html

Original thread: https://box2d.org/forum/viewtopic.php?t=2879