In the second part of this series I showed you how to cut Box2D objects.
Unfortunately I was working in the debug draw environment, so the whole process can’t be applied in a real-world example, unless you want to publish a game with the debug draw graphics.
So it’s time to see how to cut your own sprites. This is what you’ll get at the end of this step:
Cut the debug draw polygons to see randomly colored debris fall down. These debris are Sprites generated in real time.
So let’s take a look at the source code, and see what changed since the previous step[...]
Slicing, splitting and cutting objects with Box2D – part 3: cutting your own Sprites
No comments:
Post a Comment