Changeset 2578 for code/branches
- Timestamp:
- Jan 7, 2009, 6:09:08 PM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 3 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(); -
code/branches/presentation/visual_studio/vc8/orxonox.vcproj
r2564 r2578 457 457 > 458 458 <File 459 RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\Fusion.cc" 460 > 461 </File> 462 <File 459 463 RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\LaserGun.cc" 460 464 > … … 1241 1245 > 1242 1246 <File 1247 RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\Fusion.h" 1248 > 1249 </File> 1250 <File 1243 1251 RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\LaserGun.h" 1244 1252 >
Note: See TracChangeset
for help on using the changeset viewer.