Changeset 6081 for code/branches/particles2/src/modules/weapons/projectiles
- Timestamp:
- Nov 17, 2009, 11:58:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particles2/src/modules/weapons/projectiles/Rocket.cc
r6080 r6081 125 125 SUPER(Rocket, tick, dt); 126 126 127 this->setAngularVelocity(this-> localAngularVelocity_);127 this->setAngularVelocity(this->getOrientation() * this->localAngularVelocity_); 128 128 this->setVelocity( (this->getOrientation()*WorldEntity::FRONT)*100 ); 129 129 this->localAngularVelocity_ = 0; … … 195 195 void Rocket::rotateYaw(const Vector2& value) 196 196 { 197 this->localAngularVelocity_. x= value.x;197 this->localAngularVelocity_.y = value.x; 198 198 } 199 199 … … 206 206 void Rocket::rotatePitch(const Vector2& value) 207 207 { 208 this->localAngularVelocity_. y= value.x;208 this->localAngularVelocity_.x = value.x; 209 209 } 210 210
Note: See TracChangeset
for help on using the changeset viewer.