Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 10:53:44 PM (15 years ago)
Author:
rgrieder
Message:

Minor changes and added localInertia_ to worldentity for faster access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics_merge/src/orxonox/objects/worldentities/WorldEntity.h

    r2442 r2452  
    199199            inline float getTotalMass() const
    200200                { return this->mass_ + this->childrenMass_; }
     201
     202            inline const btVector3& getLocalInertia() const
     203                { return this->localInertia_; }
    201204
    202205            inline void setRestitution(float restitution)
     
    269272            CompoundCollisionShape*      collisionShape_;
    270273            btScalar                     mass_;
     274            btVector3                    localInertia_;
    271275            btScalar                     restitution_;
    272276            btScalar                     angularFactor_;
Note: See TracChangeset for help on using the changeset viewer.