From 3690860a5d9c161e7c38381fca713f0ab7316200 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 11 Sep 2012 16:19:16 +0200 Subject: [PATCH] Disabled bullet pushback via mass. --- source/abstract/Physical.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/abstract/Physical.cpp b/source/abstract/Physical.cpp index 20f86e3..e751ef4 100755 --- a/source/abstract/Physical.cpp +++ b/source/abstract/Physical.cpp @@ -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); }