Changeset 10274 for code/trunk/src
- Timestamp:
- Feb 15, 2015, 11:11:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/WorldEntity.cc
r9667 r10274 221 221 if(GameMode::isMaster()) 222 222 { 223 // physics is only enabled if the WorldEntity is active 224 if (this->isActive()) 225 this->activatePhysics(); 226 else 227 this->deactivatePhysics(); 228 229 // iterate over all children and change their activity as well 223 230 for (std::set<WorldEntity*>::const_iterator it = this->getAttachedObjects().begin(); it != this->getAttachedObjects().end(); it++) 224 231 { … … 246 253 if(GameMode::isMaster()) 247 254 { 255 // iterate over all children and change their visibility as well 248 256 for (std::set<WorldEntity*>::const_iterator it = this->getAttachedObjects().begin(); it != this->getAttachedObjects().end(); it++) 249 257 {
Note: See TracChangeset
for help on using the changeset viewer.