- Timestamp:
- Dec 13, 2008, 9:38:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/MovableEntity.cc
r2421 r2427 22 22 * Author: 23 23 * Fabian 'x3n' Landau 24 * Reto Grieder 24 25 * Co-authors: 25 26 * ... … … 76 77 } 77 78 78 void MovableEntity::tick(float dt)79 {80 MobileEntity::tick(dt);81 82 if (this->isActive())83 {84 }85 }86 87 void MovableEntity::overwritePosition()88 {89 this->setPosition(this->overwrite_position_);90 }91 92 void MovableEntity::overwriteOrientation()93 {94 this->setOrientation(this->overwrite_orientation_);95 }96 97 79 void MovableEntity::clientConnected(unsigned int clientID) 98 80 { … … 106 88 void MovableEntity::resynchronize() 107 89 { 108 positionChanged(false); 109 orientationChanged(false); 110 } 111 112 void MovableEntity::positionChanged(bool bContinuous) 113 { 114 if (!bContinuous) 115 this->overwrite_position_ = this->getPosition(); 116 } 117 118 void MovableEntity::orientationChanged(bool bContinuous) 119 { 120 if (!bContinuous) 121 this->overwrite_orientation_ = this->getOrientation(); 90 this->overwrite_position_ = this->getPosition(); 91 this->overwrite_orientation_ = this->getOrientation(); 122 92 } 123 93 }
Note: See TracChangeset
for help on using the changeset viewer.