Disable Fixture without deleting

Is there are way to disable a Fixture without removing it from the world so Box2D just ignores it?
I doubt it, because the b2World handles the memory for the objects it holds.

You could probably use contact filters and pause it's actions if you wanted to disable an object. Depends on what you're trying to do?
I'm just trying to get Box2D to ignore a fixture but not deallocte it. I tried the following but it's not ignored (still effected by gravity for example).

Code:
b2Filter filter;
filter.groupIndex = 0;
filter.maskBits = 0;
filter.categoryBits = 0;

fixture->SetFilterData(filter);
This was actually a bit too easy =P
From the Box2d API:
Code:
void b2Body::SetActive   (   bool    flag    )

Quote:
Set the active state of the body. An inactive body is not simulated and cannot be collided with or woken up. If you pass a flag of true, all fixtures will be added to the broad-phase. If you pass a flag of false, all fixtures will be removed from the broad-phase and all contacts will be destroyed. Fixtures and joints are otherwise unaffected. You may continue to create/destroy fixtures and joints on inactive bodies. Fixtures on an inactive body are implicitly inactive and will not participate in collisions, ray-casts, or queries. Joints connected to an inactive body are implicitly inactive. An inactive body is still owned by a b2World object and remains in the body list.
Fantastic thanks!

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