예제 #1
0
        public override bool ReportFixture(b2Fixture fixture)
        {
            b2Body body = fixture.Body;

            if (body.BodyType == b2BodyType.b2_dynamicBody)
            {
                bool inside = fixture.TestPoint(m_point);
                if (inside)
                {
                    m_fixture = fixture;

                    // We are done, terminate the query.
                    return(false);
                }
            }

            // Continue the query.
            return(true);
        }