Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2005, 6:03:24 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the GuidedMissiles to the trunk, without the changed aiming_turret

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/projectile.cc

    r5511 r5766  
    3838  this->lifeCycle = 0.0;
    3939  this->lifeSpan = 1.0f; /* sec */
     40  this->target = NULL;
    4041
    4142  this->remove();
     
    9899}
    99100
     101
     102
     103void Projectile::setTarget(PNode* target)
     104{
     105
     106  if (this->target == NULL)
     107     this->target = new PNode();
     108  this->target->setParent(target);
     109}
     110
     111
    100112/**
    101113 * signal tick, time dependent things will be handled here
Note: See TracChangeset for help on using the changeset viewer.