I am using filter.maskBits to let a body hover over another body without colliding with it. Once the body is "dropped," however (which just sets filter.maskBits back to 0xFFFF), I want it to push the items that it overlaps with, out of the way. This is not happening, though. it just sits there, overlapping, without doing anything. So far, the only way I can get it do my desired "pushing out of the way" behavior is to wiggle it slightly (which somehow makes the collision wake up and happen). I've tried to do this programmatically, but it is clunky, and not a desired behavior. Is there some function which can hint at the bodies (this one, or all of them) to take a look at what they're touching for collision and take appropriate action?
All of my bodies are set to not sleep. I have damping set to 200:
b2BodyDef bd;
bd.type = b2_dynamicBody;
bd.angularDamping = 200.0f;
bd.linearDamping = 200.0f;
bd.allowSleep = false;
Any help is greatly appreciated!
Thanks,
Eric
All of my bodies are set to not sleep. I have damping set to 200:
b2BodyDef bd;
bd.type = b2_dynamicBody;
bd.angularDamping = 200.0f;
bd.linearDamping = 200.0f;
bd.allowSleep = false;
Any help is greatly appreciated!
Thanks,
Eric