Changeset 2563 for code/branches/presentation
- Timestamp:
- Jan 1, 2009, 7:37:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc
r2562 r2563 652 652 this->getScene()->addPhysicalObject(this); 653 653 this->bPhysicsActive_ = true; 654 this->bPhysicsActiveSynchronised_ = true; 654 655 } 655 656 } … … 662 663 this->getScene()->removePhysicalObject(this); 663 664 this->bPhysicsActive_ = false; 665 this->bPhysicsActiveSynchronised_ = false; 664 666 } 665 667 } … … 692 694 if (!this->isCollisionTypeLegal(type)) 693 695 return; 694 if (type != None && !this->getScene()->hasPhysics())695 {696 CCOUT(2) << "Warning: Cannot have physical bodies in a non physical scene." << std::endl;697 return;698 }699 696 700 697 if (this->isPhysicsActive())
Note: See TracChangeset
for help on using the changeset viewer.