- 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.h
r2421 r2427 22 22 * Author: 23 23 * Fabian 'x3n' Landau 24 * Reto Grieder 24 25 * Co-authors: 25 26 * ... … … 44 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 virtual void tick(float dt);47 47 void registerVariables(); 48 49 using WorldEntity::setPosition; 50 using WorldEntity::setOrientation; 51 52 inline void setPosition(const Vector3& position) 53 { MobileEntity::setPosition(position); this->overwrite_position_ = this->getPosition(); } 54 inline void setOrientation(const Quaternion& orientation) 55 { MobileEntity::setOrientation(orientation); this->overwrite_orientation_ = this->getOrientation(); } 48 56 49 57 private: … … 57 65 { this->setAngularVelocity(this->angularVelocity_); } 58 66 59 void overwritePosition(); 60 void overwriteOrientation(); 67 inline void overwritePosition() 68 { this->setPosition(this->overwrite_position_); } 69 inline void overwriteOrientation() 70 { this->setOrientation(this->overwrite_orientation_); } 61 71 62 void positionChanged(bool bContinuous); 63 void orientationChanged(bool bContinuous); 64 65 Vector3 overwrite_position_; 72 Vector3 overwrite_position_; 66 73 Quaternion overwrite_orientation_; 67 74 Timer<MovableEntity>* continuousResynchroTimer_;
Note: See TracChangeset
for help on using the changeset viewer.