How to handle a changing collision shape with a lot of boxes

Post Reply
MRopret
Posts: 3
Joined: Sat Sep 29, 2012 10:49 pm

How to handle a changing collision shape with a lot of boxes

Post by MRopret »

Hello, I'm making a 2D game that will use boxes as tiles (one next to another).

So there can be a 2D grid of boxes (eg 20x20), these boxes can be destroyed or added by the user.

How should I best handle this? Would one large rigid body with a compound shape on which I call add/remove child shape be a proper solution? (the boxes can't move on their own, they are a part of a whole).
Post Reply