Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6081


Ignore:
Timestamp:
Nov 17, 2009, 11:58:38 AM (15 years ago)
Author:
scheusso
Message:

more improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particles2/src/modules/weapons/projectiles/Rocket.cc

    r6080 r6081  
    125125        SUPER(Rocket, tick, dt);
    126126       
    127         this->setAngularVelocity(this->localAngularVelocity_);
     127        this->setAngularVelocity(this->getOrientation() * this->localAngularVelocity_);
    128128        this->setVelocity( (this->getOrientation()*WorldEntity::FRONT)*100 );
    129129        this->localAngularVelocity_ = 0;
     
    195195    void Rocket::rotateYaw(const Vector2& value)
    196196    {
    197         this->localAngularVelocity_.x = value.x;
     197        this->localAngularVelocity_.y = value.x;
    198198    }
    199199
     
    206206    void Rocket::rotatePitch(const Vector2& value)
    207207    {
    208         this->localAngularVelocity_.y = value.x;
     208        this->localAngularVelocity_.x = value.x;
    209209    }
    210210
Note: See TracChangeset for help on using the changeset viewer.