Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2005, 3:23:08 PM (19 years ago)
Author:
bensch
Message:

controll: some minor changes guided missile

Location:
branches/spaceshipcontrol/src/world_entities/weapons
Files:
2 edited

Legend:

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

    r5819 r5914  
    145145void GroundTurret::collidesWith (WorldEntity* entity, const Vector& location)
    146146{
    147 
     147  if (entity->isA(CL_PROJECTILE))
     148    this->setAbsDirSoft(Quaternion(-90, Vector(0,0,1)), 90);
    148149}
    149150
  • branches/spaceshipcontrol/src/world_entities/weapons/guided_missile.cc

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