- Timestamp:
- Dec 14, 2008, 10:53:44 PM (16 years ago)
- Location:
- code/branches/physics_merge/src/orxonox/objects/collisionshapes
- Files:
-
- 2 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 } -
code/branches/physics_merge/src/orxonox/objects/collisionshapes/CollisionShape.h
r2445 r2452 66 66 { return this->scale_; } 67 67 68 btVector3 getLocalInertia(float mass) const;68 void calculateLocalInertia(float mass, btVector3& inertia) const; 69 69 70 70 inline btCollisionShape* getCollisionShape() const
Note: See TracChangeset
for help on using the changeset viewer.