This project has moved. For the latest updates, please go here.

Touching List?

Topics: Developer Forum
Jan 5, 2011 at 9:26 PM

So I'm having to adapt my game to use the new OnCollision and OnSeparation events.  All my logic depended on a continuous stream of OnCollision events while the bodies were touching in the older version of farseer.

Is there a list maintained somewhere of the Fixtures that are colliding with other fixtures?  If so how can I get access to that list?  Or do I just need to rebuild that list myself by hooking up the collision and separation events on every fixture?

Thanks for your help.

Jan 5, 2011 at 10:49 PM

I found the Body.ContactList, which I suppose I could use.

I'm trying the AfterCollision event and it seems to be triggered more, but not consistently.  There's times I'm seeing an OnCollision event but not an AfterCollision.

I'll keep messing with it.