diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-24 23:35:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-24 23:35:31 +0000 |
commit | f83b25da506d7cf9c60e6eebbdd91532c9962783 (patch) | |
tree | 5df30013185953a38acc53e7e10e524023d63d4c /src/core | |
parent | 0c6499e6789db9686bcea3bb3b7f782c2f659eb7 (diff) |
Projectiles don't need mass.
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); |