Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 3:42:49 AM (16 years ago)
Author:
landauf
Message:

merged core2 back to trunk
there might be some errors, wasn't able to test it yet due to some strange g++ and linker behaviour.

File:
1 edited

Legend:

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

    r1039 r1052  
    2929#include "Projectile.h"
    3030
    31 #include "../core/CoreIncludes.h"
     31#include "core/CoreIncludes.h"
     32#include "core/Executor.h"
     33#include "core/ConfigValueIncludes.h"
     34
    3235#include "SpaceShip.h"
    3336#include "Explosion.h"
     
    5962        }
    6063
    61         this->destroyTimer_.setTimer(this->lifetime_, false, this, &Projectile::destroyObject);
     64        this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject)));
    6265    }
    6366
     
    7073        SetConfigValue(lifetime_, 10.0).description("The time in seconds a projectile stays alive");
    7174        SetConfigValue(speed_, 2000.0).description("The speed of a projectile in units per second");
     75
     76        this->setVelocity(Vector3(1, 0, 0) * this->speed_);
    7277    }
    7378
Note: See TracChangeset for help on using the changeset viewer.