Changeset 6949 for code/branches/rocket
- Timestamp:
- May 21, 2010, 9:36:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc
r6905 r6949 81 81 this->setCollisionType(Kinematic); 82 82 83 // TODO: fix the orientation and size of this collision shape to match the rocket 83 84 ConeCollisionShape* collisionShape = new ConeCollisionShape(this); 84 85 collisionShape->setRadius(3); 85 collisionShape->setHeight(5 00);86 collisionShape->setHeight(5); 86 87 this->attachCollisionShape(collisionShape); 87 88 … … 96 97 this->setAngularVelocity(this->getOrientation() * this->localAngularVelocity_); 97 98 this->setVelocity( this->getOrientation()*WorldEntity::FRONT*this->getVelocity().length() ); 99 this->localAngularVelocity_ = 0; 98 100 99 101 if( this->bDestroy_ )
Note: See TracChangeset
for help on using the changeset viewer.