From f83b25da506d7cf9c60e6eebbdd91532c9962783 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 24 Dec 2014 23:35:31 +0000 Subject: Projectiles don't need mass. --- src/core/entityprojectile.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3