Esempio n. 1
0
        /**返回位置下的刚体*/
        private b2Body getPosBody(float x, float y)
        {
            b2Body b = null;

            b2WorldQueryCallback cb = delegate(b2Fixture fixture) {
                b = fixture.GetBody();
                return(false);
            };

            _world.QueryPoint(cb, new b2Vec2(x, y));
            return(b);
        }