How can i simulate a top view game ( gravity )

Quote:
Box2D has static and dynamic friction. They use the same friction coefficient for simplicity.

Sorry, that's what I meant. The coefficient is the same, so Box2D doesn't differentiate between them. It has both, but they're the same.
The friction force can easily be calculated by multiplying a friction constant by the normal force between the object and the ground, which in a top-down view simply would be m*g (mass times gravity).

From wikipedia:
Quote:
Ff = μk*Fn where

* Ff is either the force exerted by friction, or, in the case of equality, the maximum possible magnitude of this force.
* μ is the coefficient of friction, which is an empirical property of the contacting materials,
* Fn is the normal force exerted between the surfaces


One more thing, an objects friction constant is actually different depending if it is moving or note. If not, the constants should be higher. But I don't know if you need to use two different constants.

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