Changeset 4890 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/test_bullet.cc
- Timestamp:
- Jul 19, 2005, 12:20:58 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/test_bullet.cc
r4836 r4890 64 64 this->shiftCoor(v); 65 65 66 this-> currentLifeTime += time;67 if( this-> ttl < this->currentLifeTime)66 this->lifeCycle += time/this->lifeSpan; 67 if( this->lifeCycle >= 1) 68 68 { 69 69 PRINTF(5)("FINALIZE==========================\n"); 70 PRINTF(5)("current life time is: %f/%f\n", this->currentLifeTime, this->ttl);70 PRINTF(5)("current life cycle is: %f\n", this->lifeCycle); 71 71 PRINTF(5)("FINALIZE===========================\n"); 72 72 this->finalize(); 73 this->currentLifeTime = 0.0f;74 73 } 75 74 } 76 77 /**78 * the projectile gets hit by another entity79 * @param the other entity80 * @param place where it is hit81 */82 void TestBullet::hit (WorldEntity* entity, Vector* place)83 {}84 85 75 86 76 /**
Note: See TracChangeset
for help on using the changeset viewer.