Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2011, 5:42:19 PM (13 years ago)
Author:
dafrick
Message:

Cleaning up in SpaceShip and Engine. Fixed several bugs.
Kicked localLinearAcceleration, primaryThrust and auxiliaryThrust out of the SpaceShip, since it wasn't used anymore.
Moved the trail lights back a bit.
Added some documentation to SpaceShip and Engine.
SpeedPickup is working again, will need some further tuning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/items/MultiStateEngine.cc

    r6709 r8727  
    109109    }
    110110
    111     void MultiStateEngine::tick(float dt)
     111    void MultiStateEngine::run(float dt)
    112112    {
    113113        if (this->getShip())
     
    117117            if (this->getShip()->hasLocalController())
    118118            {
    119                 const Vector3& direction = this->getDirection();
     119                const Vector3& direction = this->getSteering();
    120120                bool forward = (direction.z < 0.0 && velocity.z < -FORWARD_EFFECT_VELOCITY_THRESHOLD);
    121121
    122122                this->state_ = 0;
    123                 if (this->getShip()->getBoost() && forward)
     123                if (this->getShip()->isBoosting() && forward)
    124124                    this->state_ = Boost;
    125125                else if (forward && !this->state_) // this->state_ == Boost
     
    181181        }
    182182
    183         SUPER(MultiStateEngine, tick, dt);
     183        Engine::run(dt);
    184184    }
    185185
Note: See TracChangeset for help on using the changeset viewer.