Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2008, 12:59:48 AM (16 years ago)
Author:
scheusso
Message:

Fix in Projectiles (network fix)
different improvements in synchronisable and gamestates

File:
1 edited

Legend:

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

    r1747 r1834  
    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);
    5961            this->setOrientation(this->owner_->getOrientation());
    6062            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        }
     
    121122        delete this;
    122123    }
     124   
     125    bool Projectile::create(){
     126      return WorldEntity::create();
     127    }
    123128}
Note: See TracChangeset for help on using the changeset viewer.