Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2008, 2:17:18 PM (15 years ago)
Author:
polakma
Message:

pojectile compiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc

    r2232 r2272  
    4646        //this->setLoadingTime(0.5);
    4747
    48         //Hack --> will be loaded by XML
     48        //how could it be loaded by XML
    4949        this->attachNeededMunition("LaserGunMunition");
    5050    }
     
    5858        if ( this->getBulletReadyToShoot() && this->getMagazineReadyToShoot() )
    5959        {
    60 
    61 
    62 
    6360            //take munition
    6461            this->getAttachedMunition()->removeBullets(1,this);
     
    6764
    6865            //create projectile
    69             BillboardProjectile* projectile = new ParticleProjectile(this,this);
     66            BillboardProjectile* projectile = new ParticleProjectile(this);
     67            projectile->setOrientation(projectile->getOrientation());
     68            projectile->setPosition(projectile->getWorldPosition());
     69            projectile->setVelocity(WorldEntity::FRONT * this->speed_);
     70
    7071            //projectile->setColour(this->getProjectileColour());
    7172        }
Note: See TracChangeset for help on using the changeset viewer.