Changeset 2578 for code/branches/presentation/src/orxonox/objects
- Timestamp:
- Jan 7, 2009, 6:09:08 PM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/objects/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc
r2565 r2578 767 767 return; 768 768 } 769 770 // Only sets this->collisionType_ 771 // However the assertion is to ensure that the internal bullet setting is right 772 updateCollisionType(); 773 assert(this->collisionType_ == type); 769 this->collisionType_ = type; 770 this->collisionTypeSynchronised_ = type; 774 771 775 772 // update mass and inertia tensor … … 817 814 return ""; 818 815 } 819 }820 821 void WorldEntity::updateCollisionType()822 {823 if (!this->physicalBody_)824 this->collisionType_ = None;825 else if (this->physicalBody_->isKinematicObject())826 this->collisionType_ = Kinematic;827 else if (this->physicalBody_->isStaticObject())828 this->collisionType_ = Static;829 else830 this->collisionType_ = Dynamic;831 this->collisionTypeSynchronised_ = this->collisionType_;832 816 } 833 817 -
code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.h
r2565 r2578 369 369 370 370 private: 371 void updateCollisionType();372 371 void recalculateMassProps(); 373 372 void internalSetPhysicsProps();
Note: See TracChangeset
for help on using the changeset viewer.