Changeset 2454
- Timestamp:
- Dec 14, 2008, 11:02:58 PM (16 years ago)
- Location:
- code/branches/physics_merge/src/orxonox/objects/worldentities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics_merge/src/orxonox/objects/worldentities/MobileEntity.cc
r2452 r2454 158 158 if (type == WorldEntity::Static) 159 159 { 160 ThrowException(PhysicsViolation, "Cannot tell a MobileEntity to have static collision type"); 160 CCOUT(1) << "Error: Cannot tell a MobileEntity to have static collision type! Ignoring." << std::endl; 161 assert(false); // Only in debug mode 161 162 return false; 162 163 } -
code/branches/physics_merge/src/orxonox/objects/worldentities/StaticEntity.cc
r2442 r2454 99 99 if (type == WorldEntity::Kinematic || type == WorldEntity::Dynamic) 100 100 { 101 ThrowException(PhysicsViolation, "Cannot tell a StaticEntity to have kinematic or dynamic collision type"); 101 CCOUT(1) << "Error: Cannot tell a StaticEntity to have kinematic or dynamic collision type! Ignoring." << std::endl; 102 assert(false); // Only in debug mode 102 103 return false; 103 104 } -
code/branches/physics_merge/src/orxonox/objects/worldentities/WorldEntity.cc
r2452 r2454 463 463 // Check for type legality. Could be StaticEntity or MobileEntity 464 464 if (!this->isCollisionTypeLegal(type)) 465 return; // exception gets issued anyway465 return; 466 466 if (type != None && !this->getScene()->hasPhysics()) 467 467 { -
code/branches/physics_merge/src/orxonox/objects/worldentities/pawns/SpaceShip.cc
r2453 r2454 95 95 if (type != WorldEntity::Dynamic) 96 96 { 97 ThrowException(PhysicsViolation, "Cannot tell a SpaceShip not to be dynamic!"); 97 CCOUT(1) << "Error: Cannot tell a SpaceShip not to be dynamic! Ignoring." << std::endl; 98 assert(false); // Only in debug mode 98 99 return false; 99 100 }
Note: See TracChangeset
for help on using the changeset viewer.