- Timestamp:
- Mar 30, 2005, 12:43:15 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/garbage_collector.cc
r3669 r3670 136 136 /* second remove out of pnode tree */ 137 137 entity->remove(); 138 /* then finaly delete reference */ 138 139 delete entity; 139 140 } 140 141 entity = iterator->nextElement(); 141 142 } 143 142 144 PRINTF(3)("= collected %i unused objects\n", counter); 143 145 PRINTF(3)("=============================\n"); 144 145 146 147 146 148 147 /* reset time to count again up to this->delay */ -
orxonox/trunk/src/story_entities/world.cc
r3660 r3670 329 329 330 330 331 /* 331 332 Vector* es = new Vector (10, 5, 0); 332 333 Quaternion* qs = new Quaternion (); … … 334 335 pr->setName("primitive"); 335 336 this->spawn(pr, this->localPlayer, es, qs, PNODE_MOVEMENT); 336 337 */ 337 338 338 339 /*monitor progress*/ -
orxonox/trunk/src/world_entities/projectile.cc
r3646 r3670 38 38 this->currentLifeTime = 0.0f; 39 39 this->ttl = 1.0f; 40 this->speed = 1.1f;40 this->speed = 2.0f; 41 41 } 42 42 … … 84 84 85 85 /** 86 \brief sets the speed of the projectile 87 */ 88 void Projectile::setSpeed(float speed) 89 { 90 this->speed = speed; 91 printf("Projectile::setting speed to: %f\n", this->speed); 92 } 93 94 /** 86 95 \brief signal tick, time dependent things will be handled here 87 96 \param time since last tick … … 92 101 if( this->ttl < this->currentLifeTime) 93 102 { 94 *this->flightDirection = *this->flightDirection * speed;103 *this->flightDirection = *this->flightDirection * this->speed; 95 104 this->shiftCoor(this->flightDirection); 105 this->flightDirection->debug(); 96 106 return; 97 107 } -
orxonox/trunk/src/world_entities/test_gun.cc
r3646 r3670 82 82 void TestGun::fire() 83 83 { 84 printf("TestGun::fire() - firing weapon now ---------------------------\n");84 //printf("TestGun::fire() - firing weapon now ---------------------------\n"); 85 85 Projectile* pj = new Projectile(); 86 86 Vector* v = new Vector(); … … 92 92 93 93 pj->setFlightDirection(q); 94 //pj->setSpeed(this->getSpeed() * 0.025); 94 95 95 printf("TestGun::current speed is: %f", this->getSpeed());96 96 97 97 this->worldEntities->add(pj);
Note: See TracChangeset
for help on using the changeset viewer.