How to reapply physics after dragging mesh?

Hello! I think this may be a rather simple question, but I couldn’t figure it out based on the documentation.

If I’ve attached a physics imposter to a mesh, and apply gravity, the mesh falls. If I attach a drag behavior to the mesh, and then I drag the mesh, the mesh doesn’t fall after it’s dragged, and I’m a bit confused as to why.

I understand physics must be turned off while the mesh is dragged, but how do I reapply it afterwards? I see some reference to ‘isDisposed’ on the physics imposter – does it go away when I drag? Do I need to apply a new one?

Playground is available here! Thank you in advance for any help, I’m quite new.

Hello and welcome to the Babylon community! @Cedric our physics god will certainly know :smiley:

Something if off when I’m doing my tests. Let me check.

1 Like

I tried a few things but as long as the physics engine is ticking, it’s hard to stop the object to move.
For example, setting the linear velocity to 0 for each mouse movement doesn’t stop the physics when there is no mouse event.
I could find a way tho by disabling the gravity:

Oh, this is wonderful! Thank you so much!