Hi, everyone, I'm developing a simple shoot'em up game using Farseer 3.3. Thats my second game ever, so sorry if im asking about some basics. I have a problem when it comes to collisions. Basically everything is working fine except one thing, Player collides
with his own bullets. It's really strange for me since i set collisionCategories and collisionWith for bullets not to collide with player.
In class Player:
Body.CollisionCategories = Category.Cat2;
Body.CollidesWith = Category.Cat1 | Category.Cat4 | Category.Cat5;
In class Beam:
Body.CollisionCategories = Category.Cat3;
Body.CollidesWith = Category.Cat4;
Body.CollisionCategories = Category.Cat5;
Body.CollidesWith = Category.Cat2;
where isStartedByPlayer is always true, by now. I could use IgnoreCCD() or something like this, and that solves my problem, but i'm planning to use the same class to make enemy bullets easily by setting only collisionCategories and bullet direction. What
My first thought was Body.OnCollision += OnHit; when OnHit() deploys both bullet and its target ignores category collisions but it would be rather stupid.