Matter. js check if bodies stopped moving
<p>I am using matter. js to create a 2d scene. 
I apply a force on a body in the scene,  this body hits other bodies but eventually all bodies stop moving due to friction and loss of energy.  </p>

<p>Somehow I need to detect when all bodies in the scene have stopped moving. I am finding difficulty doing so since after going through the documentation I did not find a built in method to do the check for me.  Also I tried iterating through the bodies in the scene and checking some attributes I thought would determine if the object was moving or still, this got me nowhere. </p>

<p>Does anyone know of a clean way to check if all bodies in the scene are not moving anymore? </p>