Pass-through Platforms?

Jan 15, 2012 at 12: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 12:36 AM

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

Jan 23, 2012 at 7: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 3: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.