Changeset 3708 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc
- Timestamp:
- Apr 1, 2005, 1:41:38 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_gun.cc
r3689 r3708 85 85 { 86 86 if( this->localTime < this->idleTime) 87 return; 88 87 { 88 this->weaponIdle(); 89 return; 90 } 89 91 Projectile* pj = new Projectile(this); 90 92 91 Vector* v = new Vector(); 92 *v = this->getAbsCoor(); 93 pj->setAbsCoor(v); 94 Quaternion* q = new Quaternion(); 95 *q = this->getAbsDir(); 96 pj->setAbsDir(q); 93 pj->setAbsCoor(this->getAbsCoor()); 94 pj->setAbsDir(this->getAbsDir()); 97 95 98 printf("%f\n",this->getSpeed()); 99 100 pj->setFlightDirection(q); 96 pj->setFlightDirection(this->getAbsDir()); 101 97 pj->setSpeed(this->getSpeed()); 102 98
Note: See TracChangeset
for help on using the changeset viewer.