Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2005, 2:50:01 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: AimingTurret with GuidedMissiles :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/weapons/aiming_turret.cc

    r5819 r5913  
    9393
    9494  this->setCapability(WTYPE_ALLDIRS | WTYPE_TURRET);
    95   this->setProjectileType(CL_ROCKET);
     95  this->setProjectileType(CL_GUIDED_MISSILE);
    9696
    9797
     
    142142    return;
    143143
    144     pj->setVelocity(/*this->getVelocity()+*/(this->getAbsDir().apply(Vector(1,0,0))*250.0 + VECTOR_RAND(13)
     144  pj->setVelocity(/*this->getVelocity()+*/(this->getAbsDir().apply(Vector(1,0,0))*250.0 + VECTOR_RAND(13)
    145145            /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity());
    146146
     147  pj->setTarget(this->target->getParent());
    147148  pj->setParent(NullParent::getInstance());
    148149  pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset for help on using the changeset viewer.