BoundaryElement, and how to use it

Sep 5, 2010 at 10:32 PM

Do you just set the BoundaryElement="elementName" ?

I have a triangle around a 'missile' to indicate the boundary, and I have it set to opacity of .01. Is this ok? It does not seem to quite hit correctly. It some times passes through, some times collides too early.




Sep 6, 2010 at 2:04 AM

Yes, I sometimes do this myself to create a simpler boundary. You can set the Opacity to a lower value and the boundary will still be calculated.

What do you see if you set DebugMode on the PhysicsController? Does the boundary look correct?

Another possibility is that you are seeing tunneling. This is an issue in Farseer 2.x and should be fixed by Farseer 3.x (if you search for tunneling on the farseer forums you will see what I mean, objects can pass through each other if they are moving too fast or you do not have a small enough TimeStep)