- Timestamp:
- Dec 14, 2008, 12:25:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/StaticEntity.cc
r2426 r2433 62 62 { 63 63 if (this->addedToPhysicalWorld()) 64 ThrowException(PhysicsViolation, "Cannot change position or orientation of a StaticEntity with physics at run time."); 64 { 65 CCOUT(2) << "Warning: Attempting to change the position of a StaticEntity at physics run time. Ignoring change." << std::endl; 66 return; 67 } 65 68 if (this->isStatic()) 66 69 { … … 76 79 { 77 80 if (this->addedToPhysicalWorld()) 78 ThrowException(PhysicsViolation, "Cannot change position or orientation of a StaticEntity with physics at run time."); 81 { 82 CCOUT(2) << "Warning: Attempting to change the orientation of a StaticEntity at physics run time. Ignoring change." << std::endl; 83 return; 84 } 79 85 if (this->isStatic()) 80 86 { … … 101 107 { 102 108 OrxAssert(false, "Setting world transform of a StaticEntity, which is CF_STATIC!"); 103 //COUT(0) << "Setting world transform of a StaticEntity, which is static!" << std::endl;104 109 } 105 110
Note: See TracChangeset
for help on using the changeset viewer.