- Timestamp:
- Aug 1, 2011, 4:37:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/worldentities/WorldEntity.cc
r8706 r8809 311 311 this->collisionTypeSynchronised_ != None) 312 312 { 313 CCOUT(1) << "Error when collsion Type was received over network. Unknown enum value:" << this->collisionTypeSynchronised_ << std::endl;313 orxout(internal_error) << "Error when collsion Type was received over network. Unknown enum value:" << this->collisionTypeSynchronised_ << endl; 314 314 } 315 315 else if (this->collisionTypeSynchronised_ != collisionType_) 316 316 { 317 317 if (this->parent_) 318 CCOUT(2) << "Warning: Network connection tried to set the collision type of an attached WE. Ignoring." << std::endl;318 orxout(internal_warning) << "Network connection tried to set the collision type of an attached WE. Ignoring." << endl; 319 319 else 320 320 this->setCollisionType(this->collisionTypeSynchronised_); … … 373 373 if (object == this) 374 374 { 375 COUT(2) << "Warning: Can't attach a WorldEntity to itself." << std::endl;375 orxout(internal_warning) << "Can't attach a WorldEntity to itself." << endl; 376 376 return; 377 377 } … … 406 406 if (!newParent->hasPhysics()) 407 407 { 408 COUT(2) << "Warning: Cannot attach a physical object to a non physical one." << std::endl;408 orxout(internal_warning) << " Cannot attach a physical object to a non physical one." << endl; 409 409 return false; 410 410 } 411 411 else if (this->isDynamic()) 412 412 { 413 COUT(2) << "Warning: Cannot attach a dynamic object to a WorldEntity." << std::endl;413 orxout(internal_warning) << "Cannot attach a dynamic object to a WorldEntity." << endl; 414 414 return false; 415 415 } 416 416 else if (this->isKinematic() && newParent->isDynamic()) 417 417 { 418 COUT(2) << "Warning: Cannot attach a kinematic object to a dynamic one." << std::endl;418 orxout(internal_warning) << "Cannot attach a kinematic object to a dynamic one." << endl; 419 419 return false; 420 420 } 421 421 else if (this->isKinematic()) 422 422 { 423 COUT(2) << "Warning: Cannot attach a kinematic object to a static or kinematic one: Not yet implemented." << std::endl;423 orxout(internal_warning) << "Cannot attach a kinematic object to a static or kinematic one: Not yet implemented." << endl; 424 424 return false; 425 425 } … … 455 455 if (it == this->children_.end()) 456 456 { 457 CCOUT(2) << "Warning: Cannot detach an object that is not a child." << std::endl;457 orxout(internal_warning) << "Cannot detach an object that is not a child." << endl; 458 458 return; 459 459 } … … 799 799 if (this->parent_) 800 800 { 801 CCOUT(2) << "Warning: Cannot set the collision type of a WorldEntity with a parent." << std::endl;801 orxout(internal_warning) << "Cannot set the collision type of a WorldEntity with a parent." << endl; 802 802 return; 803 803 } … … 822 822 if (!this->node_->getScale().positionEquals(Vector3(1, 1, 1), 0.001)) 823 823 { 824 CCOUT(2) << "Warning: Cannot create a physical body if there is scaling applied to the node: Not yet implemented." << std::endl;824 orxout(internal_warning) << "Cannot create a physical body if there is scaling applied to the node: Not yet implemented." << endl; 825 825 return; 826 826 } … … 971 971 { 972 972 // Use default values to avoid very large or very small values 973 CCOUT(4) << "Warning: Setting the internal physical mass to 1.0 because mass_ is 0.0" << std::endl;973 orxout(internal_warning) << "Setting the internal physical mass to 1.0 because mass_ is 0.0" << endl; 974 974 btVector3 inertia(0, 0, 0); 975 975 this->collisionShape_->calculateLocalInertia(1.0f, inertia);
Note: See TracChangeset
for help on using the changeset viewer.