Changeset 3757 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc
- Timestamp:
- Apr 8, 2005, 1:01:24 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_gun.cc
r3755 r3757 47 47 this->leftRight = leftRight; 48 48 49 if( this->leftRight == 0) 50 this->projOffset = new Vector(1.0, 0.0, -0.35); 51 else if( this->leftRight == 1) 52 this->projOffset = new Vector(1.0, 0.0, 0.5); 53 49 54 this->animator = SimpleAnimation::getInstance(); 50 55 this->dummy1 = new WorldEntity(); /* a world entity that is not drawed: use this for the weapon */ … … 117 122 Projectile* pj = new TestBullet(this); 118 123 119 pj->setAbsCoor(this->getAbsCoor() );124 pj->setAbsCoor(this->getAbsCoor() + *this->projOffset); 120 125 pj->setAbsDir(this->getAbsDir()); 121 126
Note: See TracChangeset
for help on using the changeset viewer.