Is it possible to have inactive bodies?

What I want to do is create a body that won't update or collide until a certain event is triggered, just hovering in the air not affecting or being affected by anything.

All bodies have to be created before the application is run, so unfortunately I can't spawn them when the event occurs.

I could possibly have them positioned off camera and just move them into view as they are needed, though it would easier if I didn't have to do it that way.

Grateful for any suggestions!
I'm curious why you can't create the bodies as needed?

You can set the collision masks to 0 and start the body asleep. Then when event occurs set the collision masks to non-zero, call ResetProxy, and wake the body.
We're working towards a low memory requirement. So even though we can create them as the application goes on, we prefer to have it done beforehand as to prevent fragmentation.

Anyway, thank you for the help it was exactly what I needed!
Now on towards the next piece of code.
Okay, if my solution gives you trouble, it shouldn't be hard to change the body factory so that it uses a fixed size pool.

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