C# 클래스 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.
파일 보기 프로젝트 열기: tinco/Farseer-Physics 1 사용 예제들

공개 메소드들

메소드 설명
ReportFixture ( Fixture fixture ) : bool

Called for each fixture found in the query AABB.

비공개 메소드들

메소드 설명
DrawFixture ( Fixture fixture ) : void

메소드 상세

ReportFixture() 공개 메소드

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