Help with linear impulse

Hey everyone..!

I am working on game in which i require the enemies to come down from top of the screen (Portrait mode).
So to achieve this .. i used linear impulse on the enemies.. which seems to working as needed.

But now , I want to freeze this enemies on a triple tap gesture for a few seconds then again the enemies should start coming down as they were before.

I cant figure out how can i stop the enemies applied with linear impulse.
Any idea how this can be achieved ?

Any guidance will be truly appreciated.

Thanks for your time
Shailesh
While they are frozen, should they be bumped around if something hits them? If not you could set the body type to static - you'll need to reset the velocity etc after returning them to dynamic.
If they should be 'bumpable' while frozen then maybe you could set their velocity to zero and their gravity scale to zero as well, that should keep them suspended in one place. You would have to detect when something collides with them and then return their gravity to normal etc.

Original thread: https://box2d.org/forum/viewtopic.php?t=8533