Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2011, 1:40:53 PM (13 years ago)
Author:
landauf
Message:

the "lift" which is applied to the spaceship when pitching is now also applied when yawing.
moving up/down or left/right is now again possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/items/Engine.cc

    r8654 r8658  
    158158        SUPER(Engine, tick, dt);
    159159
    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       
    161165        Vector3 velocity = this->ship_->getLocalVelocity();
    162166        Vector3 acceleration = Vector3::ZERO;
Note: See TracChangeset for help on using the changeset viewer.