This project has moved and is read-only. For the latest updates, please go here.

Pass-through Platforms?

Jan 15, 2012 at 1:20 AM

Is is possible to create platforms using Farseer so that the collision only occurs from a single direction in such a way that when the character jumps from the bottom of a platform, he/she passes through it and lands on top of it?

Jan 15, 2012 at 1:36 AM

Yes, in the samples there is one sample precisely for that. Check it.

Jan 23, 2012 at 8:51 PM

Did you find the sample? I need the same feature in my game but I couldn't find the sample for it. I checked every sample on the Farseer Samples app on my Windows Phone 7...

Jan 24, 2012 at 4:26 PM

I believe it is in the TestBed solution download FPE from the source code tab.  What I did was set up an OnCollision event for my Body I am controlling, then set up collision categories for my platform Edges and ground Edges. The in the OnCollision event, if the collision is with a platform, then only return true if the the Body i am controlling LinearVelocity is greater than 0.