Hi.
I use this code to make a body static:
The problem is that even though the body is made static, during collisions it appears as if it had some speed (the speed that it had when it was last dynamic). This means that if some other very slow dynamic body will now touch this static body, it will gain a lot of speed during collision, just as if the static body had a lot of speed.
Has anybody else noticed this bug?
I use this code to make a body static:
Code:
b2MassData md;
md.mass=0.0f;
md.center=b2Vec2();
md.I=0.0f;
body->SetMass(&md);
md.mass=0.0f;
md.center=b2Vec2();
md.I=0.0f;
body->SetMass(&md);
The problem is that even though the body is made static, during collisions it appears as if it had some speed (the speed that it had when it was last dynamic). This means that if some other very slow dynamic body will now touch this static body, it will gain a lot of speed during collision, just as if the static body had a lot of speed.
Has anybody else noticed this bug?