Hi,
Any ideas how you would make a body move over the top of another without dragging the other with it? lets say you have a square, and it's moving over a trangle shape, right now I'm using
but it just takes the triangle shape with it, do I just have to "fix" the triangle in place somehow, maybe with setting the mass to 0? but what if I wanted another object to hit the triangle and be able to move it, is it a case of detecting which objects hit? and then once you know what object has hit, give the triangle it's original mass back so it's moved correctly??
thanks for any advice.
Any ideas how you would make a body move over the top of another without dragging the other with it? lets say you have a square, and it's moving over a trangle shape, right now I'm using
Code:
SetLinearVelocity(new b2Vec2(2, 0));
but it just takes the triangle shape with it, do I just have to "fix" the triangle in place somehow, maybe with setting the mass to 0? but what if I wanted another object to hit the triangle and be able to move it, is it a case of detecting which objects hit? and then once you know what object has hit, give the triangle it's original mass back so it's moved correctly??
thanks for any advice.