C# Class FarseerPhysics.Testbed.Tests.PolyShapesCallback

This tests stacking. It also shows how to use World.Query() and AABB.TestOverlap(). This callback is called by World.QueryAABB(). We find all the fixtures that overlap an AABB. Of those, we use AABB.TestOverlap() to determine which fixtures overlap a circle. Up to 4 overlapped fixtures will be highlighted with a yellow border.
Exibir arquivo Open project: tinco/Farseer-Physics Class Usage Examples

Public Methods

Method Description
ReportFixture ( Fixture fixture ) : bool

Called for each fixture found in the query AABB.

Private Methods

Method Description
DrawFixture ( Fixture fixture ) : void

Method Details

ReportFixture() public method

Called for each fixture found in the query AABB.
public ReportFixture ( Fixture fixture ) : bool
fixture FarseerPhysics.Dynamics.Fixture The fixture.
return bool