Changeset 4927 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/test_gun.cc
- Timestamp:
- Jul 21, 2005, 5:33:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/test_gun.cc
r4910 r4927 64 64 if( this->leftRight == W_LEFT) 65 65 { 66 this-> projectileOffset = Vector(1.0, 0.0, -0.35);66 this->setEmissionPoint(1.0, 0.0, -0.35); 67 67 68 68 animation1->addKeyFrame(Vector(0, 0, 0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_CONSTANT); … … 78 78 else if( this->leftRight == W_RIGHT) 79 79 { 80 this-> projectileOffset = Vector(1.0, 0.0, 0.5);80 this->setEmissionPoint(1.0, 0.0, 0.5); 81 81 82 82 this->objectComponent1->setRelCoor(Vector(0,0,0.35)); … … 105 105 this->setStateDuration(WS_DEACTIVATING, .4); 106 106 107 this-> energy = 100;108 this->minCharge = 2;107 this->increaseEnergy(100); 108 //this->minCharge = 2; 109 109 110 110 this->setActionSound(WA_SHOOT, "sound/shot1.wav"); … … 156 156 // weaponSource->play(); 157 157 158 pj->setAbsCoor(this->get AbsCoor() + this->projectileOffset);158 pj->setAbsCoor(this->getEmissionPoint()); 159 159 pj->setAbsDir(this->getAbsDir()); 160 160 pj->setVelocity(this->getVelocity());
Note: See TracChangeset
for help on using the changeset viewer.