Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2489 for code


Ignore:
Timestamp:
Dec 16, 2008, 8:12:45 PM (16 years ago)
Author:
landauf
Message:

tried to steer the spaceship with the engine.

Location:
code/branches/presentation/src/orxonox/objects
Files:
2 edited

Legend:

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

    r2488 r2489  
    192192        }
    193193
    194         this->ship_->setAcceleration(acceleration);
     194        this->ship_->setAcceleration(this->ship_->getOrientation() * acceleration);
    195195
    196196        this->ship_->setBoost(false);
  • code/branches/presentation/src/orxonox/objects/worldentities/pawns/SpaceShip.cc

    r2487 r2489  
    120120        if (this->hasLocalController())
    121121        {
     122/*
    122123            this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() * getMass() * this->auxilaryThrust_);
    123124            this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() * getMass() * this->auxilaryThrust_);
     
    128129            this->physicalBody_->applyCentralForce(physicalBody_->getWorldTransform().getBasis() * this->localLinearAcceleration_);
    129130            this->localLinearAcceleration_.setValue(0, 0, 0);
    130 
     131*/
    131132            if (!this->isInMouseLook())
    132133            {
Note: See TracChangeset for help on using the changeset viewer.