Changeset 5766 in orxonox.OLD for trunk/src/world_entities/weapons/projectile.cc
- Timestamp:
- Nov 24, 2005, 6:03:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/projectile.cc
r5511 r5766 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.