Changeset 5764 in orxonox.OLD for branches/guidedmissile/src/world_entities/weapons/projectile.cc
- Timestamp:
- Nov 24, 2005, 4:29:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guidedmissile/src/world_entities/weapons/projectile.cc
r5511 r5764 38 38 this->lifeCycle = 0.0; 39 39 this->lifeSpan = 1.0f; /* sec */ 40 this->target = NULL; 40 41 41 42 this->remove(); … … 98 99 } 99 100 101 102 103 void Projectile::setTarget(PNode* target) 104 { 105 106 if (this->target == NULL) 107 this->target = new PNode(); 108 this->target->setParent(target); 109 } 110 111 100 112 /** 101 113 * signal tick, time dependent things will be handled here
Note: See TracChangeset
for help on using the changeset viewer.