diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/entityprojectile.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/entityprojectile.cc b/src/core/entityprojectile.cc index ac016e0..5c9bbd5 100644 --- a/src/core/entityprojectile.cc +++ b/src/core/entityprojectile.cc @@ -174,8 +174,6 @@ void EntityProjectile::reset() // calculate inertia btVector3 inertia(0, 0, 0); - if (entity_mass) - entity_collision_shape->calculateLocalInertia(entity_mass, inertia); // create motion state entity_motionstate = new btDefaultMotionState(t); @@ -187,7 +185,6 @@ void EntityProjectile::reset() entity_body->setUserPointer((void *) this); // enable custom collision callback entity_body->setCollisionFlags(entity_body->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK | btCollisionObject::CF_NO_CONTACT_RESPONSE); - //entity_body->setCollisionFlags(entity_body->getCollisionFlags() | btCollisionObject::CF_NO_CONTACT_RESPONSE); if (entity_mass) { entity_body->setActivationState(DISABLE_DEACTIVATION); |