Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2008, 11:26:16 PM (15 years ago)
Author:
landauf
Message:
  • Readded smooth camera movement (configurable through CameraPosition), works also with camera-position-changes
  • Added free mouse look (press left control key)
  • Made strength of boost-blur configurable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/SpaceShip.cc

    r2256 r2478  
    134134        if (this->hasLocalController())
    135135        {
    136             this->yaw(this->yawRotation_ * dt);
    137             if (this->bInvertYAxis_)
    138                 this->pitch(Degree(-this->pitchRotation_ * dt));
    139             else
    140                 this->pitch(Degree( this->pitchRotation_ * dt));
    141             this->roll(this->rollRotation_ * dt);
     136            if (!this->isInMouseLook())
     137            {
     138                this->yaw(this->yawRotation_ * dt);
     139                if (this->bInvertYAxis_)
     140                    this->pitch(Degree(-this->pitchRotation_ * dt));
     141                else
     142                    this->pitch(Degree( this->pitchRotation_ * dt));
     143                this->roll(this->rollRotation_ * dt);
     144            }
    142145
    143146            this->yawRotation_   = this->zeroDegree_;
     
    170173            temp = -this->maxRotation_;
    171174        this->yawRotation_ = Degree(temp);
     175
     176        Pawn::rotateYaw(value);
    172177    }
    173178
     
    180185            temp = -this->maxRotation_;
    181186        this->pitchRotation_ = Degree(temp);
     187
     188        Pawn::rotatePitch(value);
    182189    }
    183190
     
    190197            temp = -this->maxRotation_;
    191198        this->rollRotation_ = Degree(temp);
     199
     200        Pawn::rotateRoll(value);
    192201    }
    193202
Note: See TracChangeset for help on using the changeset viewer.