Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2011, 11:37:25 AM (14 years ago)
Author:
landauf
Message:

fixed a few issues related to the free mouse look mode (default CTRL key):

  • cursor is now moved to the center of the screen after leaving the mouse look mode
  • spaceship doesn't spin anymore after leaving the mode
  • camera doesn't drag back to the original position after leaving the mode, but jumps back immediately
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc

    r7801 r7860  
    142142                this->localAngularAcceleration_ *= this->getLocalInertia() * this->rotationThrust_;
    143143                this->physicalBody_->applyTorque(physicalBody_->getWorldTransform().getBasis() * this->localAngularAcceleration_);
    144                 this->localAngularAcceleration_.setValue(0, 0, 0);
    145             }
    146            
     144            }
     145
     146            this->localAngularAcceleration_.setValue(0, 0, 0);
     147
    147148            if(!this->bBoostCooldown_ && this->boostPower_ < this->initialBoostPower_)
    148149            {
     
    161162        }
    162163    }
    163    
     164
    164165    void SpaceShip::boostCooledDown(void)
    165166    {
     
    205206        Pawn::rotateRoll(value);
    206207    }
    207    
     208
    208209    // TODO: something seems to call this function every tick, could probably handled a little more efficiently!
    209210    void SpaceShip::setBoost(bool bBoost)
     
    211212        if(bBoost == this->bBoost_)
    212213            return;
    213    
     214
    214215        if(bBoost)
    215216            this->boost();
Note: See TracChangeset for help on using the changeset viewer.