Changeset 8658 for code/branches/presentation/src/orxonox/items
- Timestamp:
- May 29, 2011, 1:40:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/items/Engine.cc
r8654 r8658 158 158 SUPER(Engine, tick, dt); 159 159 160 const Vector3& direction = this->getDirection(); 160 Vector3 direction = this->getDirection(); 161 float directionLength = direction.length(); 162 if (directionLength > 1.0f) 163 direction /= directionLength; // normalize 164 161 165 Vector3 velocity = this->ship_->getLocalVelocity(); 162 166 Vector3 acceleration = Vector3::ZERO;
Note: See TracChangeset
for help on using the changeset viewer.