Changeset 6058 for code/branches/steering/src/orxonox/weaponsystem
- Timestamp:
- Nov 13, 2009, 12:06:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/steering/src/orxonox/weaponsystem/WeaponMode.cc
r6055 r6058 206 206 { 207 207 Vector3 muzzleDirection(controller->getTarget() - this->muzzlePosition_); 208 this->muzzleOrientation_ = this->weapon_->getWorldOrientation() * (this->weapon_->getWorldOrientation() * WorldEntity::FRONT).getRotationTo(muzzleDirection);208 this->muzzleOrientation_ = (this->weapon_->getWorldOrientation() * WorldEntity::FRONT).getRotationTo(muzzleDirection) * this->weapon_->getWorldOrientation(); 209 209 } 210 210 else
Note: See TracChangeset
for help on using the changeset viewer.