Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-12-24 23:35:31 +0000
committerStijn Buys <ingar@osirion.org>2014-12-24 23:35:31 +0000
commitf83b25da506d7cf9c60e6eebbdd91532c9962783 (patch)
tree5df30013185953a38acc53e7e10e524023d63d4c /src/core
parent0c6499e6789db9686bcea3bb3b7f782c2f659eb7 (diff)
Projectiles don't need mass.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/entityprojectile.cc3
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);