Using Body.IsSensor still results in colliding objects

Oct 27, 2011 at 9:51 PM


Hi guys, 
I'm using farseer 3.3.1 and I am having trouble with using sensors as the objects in the simulation still collides even if I set one of the objects as a sensor

I'm creating the Body using the BodyFactory.
Body = BodyFactory.CreateRectangle(GameLevelManager.Instance.World, GameLevelManager.CellSize, GameLevelManager.CellSize, 1f, this);

Body.IsSensor = true;
Body.FixtureList[0].IsSensor = true;


Any help would be awesome! 




Oct 28, 2011 at 7:27 AM

Try setting it by Body.BodyTyoe = BodyType.Sensor

Oct 31, 2011 at 7:47 AM
Pnikosis wrote:

Try setting it by Body.BodyTyoe = BodyType.Sensor

There is no  BodyType.Sensor only Dynamic, Kinematic, and Static

Oct 31, 2011 at 3:33 PM

sensors still collides but they should not react to collisions.

if your sensor is reacting to collisions try to use attach rectangle.