Changeset 3670 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 30, 2005, 12:43:15 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.