Changeset 3757 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Apr 8, 2005, 1:01:24 AM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_bullet.cc
r3755 r3757 57 57 void TestBullet::tick (float time) 58 58 { 59 Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0. 7);59 Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1); 60 60 this->shiftCoor(v); 61 61 -
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 -
orxonox/trunk/src/world_entities/test_gun.h
r3755 r3757 53 53 private: 54 54 SimpleAnimation* animator; 55 Vector* projOffset; 55 56 WorldEntity* dummy1; 56 57 int leftRight; // this will become an enum
Note: See TracChangeset
for help on using the changeset viewer.