Disabled bullet pushback via mass.
This commit is contained in:
parent
19569a0443
commit
3690860a5d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Reference in a new issue