Farseer. Collision between kinematic and static bodies possible?

Topics: Developer Forum
Feb 11, 2013 at 4:33 PM
Is there any way to be alerted of collisions or intersections between kinematic and static bodies?
In my game I have dynamic bodies for player and enemies, and kinematic for bullets. I also have static bodies for procedurally generated blocks which are part of the level.. I'd like to be able to register when a bullet (kinematic) intersects with a block (static) so the block can take damage and be destroyed and so the bullet ceases to exist.
Do I have to write a small collision system myself for this? Seems like a waste as farseer already has all the data a probably would do a more efficient job
Feb 11, 2013 at 8:10 PM
OK I believe what I want is for my bullets to be kinematic and also sensors
Coordinator
Feb 18, 2013 at 5:34 AM
What happens when an immovable object hits an unstoppable force?

Because this question can't be answered, collisions between kinematic and static bodies are ignored. Your bullets should be dynamic in order to detect collisions. Only moveable objects can trigger collisions.

If you don't want to use dynamic bodies, you should use raycasting or AABB checking instead, . Farseer Physics can do both.

Take a look at World.Raycast() and World.Query()