lo-th / Oimo.js

Lightweight 3d physics engine for javascript
http://lo-th.github.io/Oimo.js
MIT License
3.05k stars 301 forks source link

toggle a fixed body #59

Open pkivolowitz opened 7 years ago

pkivolowitz commented 7 years ago

Hi,

From time to time I want a fixed body blocking a goal and other times note. I need to toggle the "activeness" of the body. I would like to avoid removing the body and re-adding it as there is a lot of state added to the body that would need to be rebuilt.

Is there a "deactivate" ?

Thank you!

lo-th commented 7 years ago

no you have to remove this body and create a new kinematc one