Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2008, 7:07:36 PM (17 years ago)
Author:
polakma
Message:

added new features to munition.h and weapon.h. tried to fix projectiles (still doesn't compile)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/BillboardProjectile.cc

    r2099 r2232  
    4242        RegisterObject(BillboardProjectile);
    4343
    44         this->billboard_.setBillboardSet("Examples/Flare", ColourValue(1.0, 1.0, 0.5), 1);
    45         this->attachObject(this->billboard_.getBillboardSet());
     44        this->billboard_.setBillboardSet(this->scenemanager_, "Examples/Flare", ColourValue(1.0, 1.0, 0.5), 1);
     45        //this->attachObject(this->billboard_.getBillboardSet());
    4646        this->scale(0.5);
    4747    }
     
    4949    BillboardProjectile::~BillboardProjectile()
    5050    {
    51         if (this->isInitialized() && this->owner_)
    52             this->detachObject(this->billboard_.getBillboardSet());
     51        //if (this->isInitialized() && this->owner_)
     52            //this->detachObject(this->billboard_.getBillboardSet());
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.