I'm trying to accomplish what I feel should be pretty simple... Somehow it's not working. I must not completely understand all this group/category/mask filtering... Doesn't sound that complicated, but my solution isn't working.
Code: Select all
cpShapeSetFilter(shape, cpShapeFilterNew(uid, Game::Object::SHIP, Game::Object::PLANET));
cpShapeSetFilter(shield_shape, cpShapeFilterNew(uid, Game::Object::SHIP, Game::Object::SHIP));
...
cpShapeSetCollisionType(shape, Game::Object::Group::SHIP);
cpShapeSetCollisionType(shield_shape, Game::Object::Group::SHIP);