Since Box2D has recently been ported to Flash/AS3 I've been investigating it, specifically to replace APE (which is particle-based, much simpler feature set, apparently slower).
On APE's equivalent of bodies (APE particles) there are two flags, solid and collidable. If collidable is false, the particle always "fails" collision tests, and thus passes through everything (like a cloud). If collidable is true, then collisions are detected and an event is fired to indicate such. Solid is then tested: if solid is true, the collision is resolved (correcting vector is applied to the solid particle); if solid is false, no correction is made, only the collision notification.
What would be the best way to implement these flags in Box2d? I could see where the collidable flag could be implemented by controlling the collision group or similar properties of a shape. I'm not so sure about solid... can Box2d detect collisions (and put the contact info on the contact list) but not resolve them on a particle by particle basis?
On APE's equivalent of bodies (APE particles) there are two flags, solid and collidable. If collidable is false, the particle always "fails" collision tests, and thus passes through everything (like a cloud). If collidable is true, then collisions are detected and an event is fired to indicate such. Solid is then tested: if solid is true, the collision is resolved (correcting vector is applied to the solid particle); if solid is false, no correction is made, only the collision notification.
What would be the best way to implement these flags in Box2d? I could see where the collidable flag could be implemented by controlling the collision group or similar properties of a shape. I'm not so sure about solid... can Box2d detect collisions (and put the contact info on the contact list) but not resolve them on a particle by particle basis?