Remove Physical and add Physical question #247
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hooks cannot be conditional in react, normally you put an object "to sleep" if its not supposed to receive physics input, and you wake it up once it has to respond again. i think this would be more efficient than removing it from physics. otherwise you can unmount (not render) the object and it will be gone. and then remount? |
Beta Was this translation helpful? Give feedback.
hooks cannot be conditional in react, normally you put an object "to sleep" if its not supposed to receive physics input, and you wake it up once it has to respond again. i think this would be more efficient than removing it from physics.
otherwise you can unmount (not render) the object and it will be gone. and then remount?