Changeset 2452 for code/branches/physics_merge/src/orxonox/objects/collisionshapes/CollisionShape.cc
- Timestamp:
- Dec 14, 2008, 10:53:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics_merge/src/orxonox/objects/collisionshapes/CollisionShape.cc
r2445 r2452 108 108 } 109 109 110 btVector3 CollisionShape::getLocalInertia(btScalar mass) const110 void CollisionShape::calculateLocalInertia(btScalar mass, btVector3& inertia) const 111 111 { 112 btVector3 inertia(0, 0, 0);113 112 if (this->collisionShape_) 114 113 this->collisionShape_->calculateLocalInertia(mass, inertia); 115 return inertia; 114 else 115 inertia.setValue(0, 0, 0); 116 116 } 117 117 }
Note: See TracChangeset
for help on using the changeset viewer.