Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2010, 11:36:04 AM (14 years ago)
Author:
gnadler
Message:

no rocket is controlled by controller. accidentally deleted tick function once :S

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc

    r6900 r6902  
    9393    {
    9494        SUPER(SimpleRocket, tick, dt);
     95
     96            this->setAngularVelocity(this->getOrientation() * this->localAngularVelocity_);
     97            this->setVelocity( this->getOrientation()*WorldEntity::FRONT*this->getVelocity().length() );
     98
     99            if( this->bDestroy_ )
     100                this->destroy();
     101       
    95102        }
    96103
Note: See TracChangeset for help on using the changeset viewer.