Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6949


Ignore:
Timestamp:
May 21, 2010, 9:36:01 AM (14 years ago)
Author:
scheusso
Message:

this should fix the steering function of the SimpleRocket
changed size of the collision shape to be more realistic, still not good though

File:
1 edited

Legend:

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

    r6905 r6949  
    8181            this->setCollisionType(Kinematic);
    8282
     83            // TODO: fix the orientation and size of this collision shape to match the rocket
    8384            ConeCollisionShape* collisionShape = new ConeCollisionShape(this);
    8485            collisionShape->setRadius(3);
    85             collisionShape->setHeight(500);
     86            collisionShape->setHeight(5);
    8687            this->attachCollisionShape(collisionShape);
    8788
     
    9697            this->setAngularVelocity(this->getOrientation() * this->localAngularVelocity_);
    9798            this->setVelocity( this->getOrientation()*WorldEntity::FRONT*this->getVelocity().length() );
     99            this->localAngularVelocity_ = 0;
    98100
    99101            if( this->bDestroy_ )
Note: See TracChangeset for help on using the changeset viewer.