Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/trunk: AimingTurret with GuidedMissiles :)

Location:
branches/spaceshipcontrol/src/world_entities/weapons
Files:
2 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());
  • branches/spaceshipcontrol/src/world_entities/weapons/guided_missile.cc

    r5779 r5913  
    4949  this->energyMax = 10;
    5050  this->lifeSpan = 5;
    51   this->agility = 5;
     51  this->agility = 20;
    5252  this->maxVelocity = 100;
    5353
     
    151151void GuidedMissile::tick (float time)
    152152{
     153  printf("test\n");
    153154  //Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1);
    154155  if (target != NULL && target->getParent() != NullParent::getInstance())
Note: See TracChangeset for help on using the changeset viewer.