I would like to make a game using physics. Collisions between objects are clear to me.
However, I don’t know how I could simulate different ground material.
Suppose I push an object and it moves from the bottom to the top of the screen.
For the object, I can set parameters like mass, friction, etc.
But how to set the material and friction for the surface (i.e. the background) on which the object is moving ? For example, an object will move differently on ice, differently on grass and differently on concrete.