Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2924


Ignore:
Timestamp:
Apr 18, 2009, 7:28:41 PM (16 years ago)
Author:
landauf
Message:

fixed a small bug concerning the muzzle offset. it makes much more sense now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapons/src/orxonox/objects/weaponsystem/WeaponMode.cc

    r2919 r2924  
    198198    {
    199199        if (this->weapon_)
    200             return (this->weapon_->getWorldPosition() + this->muzzleOffset_);
     200            return (this->weapon_->getWorldPosition() + this->weapon_->getWorldOrientation() * this->muzzleOffset_);
    201201        else
    202202            return this->muzzleOffset_;
Note: See TracChangeset for help on using the changeset viewer.