Game Development Reference
In-Depth Information
Reusing b2Bodies
In Eskimo, we have a pool of b2Bodies that are used inside the Platform objects and
we also change the shape of the little Eskimo whenever the player taps the screen. This is
possible because Box2D makes it very easy to change the fixture data of a b2Body fixture
without having to destroy the actual body.
Let me show you how.
Search WWH ::




Custom Search