Changeset 2488 for code/branches/presentation/src/orxonox/objects/items
- Timestamp:
- Dec 16, 2008, 7:46:31 PM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/objects/items
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/items/Engine.cc
r2485 r2488 154 154 155 155 const Vector3& direction = this->getDirection(); 156 Vector3 velocity = this->ship_->get Velocity();156 Vector3 velocity = this->ship_->getLocalVelocity(); 157 157 Vector3 acceleration = Vector3::ZERO; 158 158 -
code/branches/presentation/src/orxonox/objects/items/MultiStateEngine.cc
r2485 r2488 95 95 96 96 const Vector3& direction = this->getDirection(); 97 const Vector3& velocity = this->getShip()->get Velocity();97 const Vector3& velocity = this->getShip()->getLocalVelocity(); 98 98 99 99 bool forward = (direction.z < 0 && velocity.z < -FORWARD_EFFECT_VELOCITY_THRESHOLD); … … 123 123 } 124 124 125 if ( this->getShip()->hasLocalController() ||Core::isMaster())125 if (Core::isMaster()) 126 126 { 127 127 for (std::list<WorldEntity*>::const_iterator it = this->activeEffects_.begin(); it != this->activeEffects_.end(); ++it)
Note: See TracChangeset
for help on using the changeset viewer.