Oimo.js How to reset a default physic body position and rotation


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 :smiling_face:

links to my current game in development :