Changeset 3689 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 31, 2005, 1:22:42 AM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/projectile.cc
r3688 r3689 99 99 void Projectile::tick (float time) 100 100 { 101 this->speed = this->weapon->getSpeed() + 100.0;101 this->speed = this->weapon->getSpeed(); 102 102 Vector v; 103 v = *this->flightDirection * this->speed * time;103 v = *this->flightDirection * ( this->speed * time * 1000 + 0.7); 104 104 this->shiftCoor(v); 105 105 //printf("PROJECTILE: current direction is: (%f, %f, %f)\n",this->flightDirection->x, this->flightDirection->y, this->flightDirection->z ); -
orxonox/trunk/src/world_entities/test_gun.cc
r3688 r3689 96 96 pj->setAbsDir(q); 97 97 98 //printf("%f\n",this->getSpeed());98 printf("%f\n",this->getSpeed()); 99 99 100 100 pj->setFlightDirection(q);
Note: See TracChangeset
for help on using the changeset viewer.