Disabled bullet pushback via mass.

This commit is contained in:
Felix Ableitner 2012-09-11 16:19:16 +02:00
parent 19569a0443
commit 3690860a5d

View file

@ -45,6 +45,7 @@ Physical::Physical(const PhysicalData& data) :
fixtureDef.filter.categoryBits = data.category;
fixtureDef.filter.maskBits = ~data.maskExclude;
fixtureDef.restitution = 0;
fixtureDef.density = (data.bullet) ? 0 : 10000;
mBody->CreateFixture(&fixtureDef);
}