Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1822 for code/trunk


Ignore:
Timestamp:
Sep 22, 2008, 6:01:36 PM (16 years ago)
Author:
landauf
Message:

small projectile fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/Projectile.cc

    r1789 r1822  
    5454        this->smokeTemplateName_ = "Orxonox/smoke4";
    5555
     56        this->setStatic(false);
     57        this->translate(Vector3(55, 0, 0), Ogre::Node::TS_LOCAL);
     58
    5659        if (this->owner_)
    5760        {
    58             this->setStatic(false);
     61            this->setPosition(this->owner_->getPosition());
    5962            this->setOrientation(this->owner_->getOrientation());
    60             this->setPosition(this->owner_->getPosition());
    61             this->translate(Vector3(55, 0, 0), Ogre::Node::TS_LOCAL);
    6263            this->setVelocity(this->owner_->getInitialDir() * this->speed_);
    6364        }
Note: See TracChangeset for help on using the changeset viewer.