Hi,
Here is a little piece of code that gave me a lot of trouble.
Just start from a physic object with oimo.js, make it pseudo static (levitating) and when an object falls on it make it dynamic again then reset it to its starting position.
Hopefully this will help some people later on
links to my current game in development :