Hello,
I am pretty new with Box2D.
We are creating a simple platforms game similar to lemmings or pingus, and in some rocks (a polygon solid or even a line) we need to make holes. It is like dragging. I was thinking to create another solid there with some kind of properties of 'intangibility' so there is no collision and our moving character can pass through it. I don't know if Box2D allows this property.
Other option is just to create the solid firstly as a set of mini-blocks(case of polygon) or mini-lines (case of StripLine) and once we have the data there to create a hole, simply make them disappear.
Actually I don't find a simple solution for this, and I don't know if box2d can handle this 'physical transparent' or 'intagibility' objects, but if there is a way of creating those 'tunnels' this will be great because maybe we avoid to change so much the rest of the code of the system.
Thanks a lot. This is very urgent, so we will be checking the forum continuously. Thanks again!
txema
I am pretty new with Box2D.
We are creating a simple platforms game similar to lemmings or pingus, and in some rocks (a polygon solid or even a line) we need to make holes. It is like dragging. I was thinking to create another solid there with some kind of properties of 'intangibility' so there is no collision and our moving character can pass through it. I don't know if Box2D allows this property.
Other option is just to create the solid firstly as a set of mini-blocks(case of polygon) or mini-lines (case of StripLine) and once we have the data there to create a hole, simply make them disappear.
Actually I don't find a simple solution for this, and I don't know if box2d can handle this 'physical transparent' or 'intagibility' objects, but if there is a way of creating those 'tunnels' this will be great because maybe we avoid to change so much the rest of the code of the system.
Thanks a lot. This is very urgent, so we will be checking the forum continuously. Thanks again!
txema