Any physics library for force distribution visualization?

I’m currently finding a library for visualization of force distribution between 2D objects.

Below is an image of 3 boxes on a trolley.
When the trolley is accelerating to the right, how will the force act from the middle big box on the left smaller box be distributed?

Screen Shot 2020-11-06 at 17.12.37

Library? …



I’m currently using Box2d library. Is there any way to visualize the force between objects?