Changeset 4895 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/test_gun.cc
- Timestamp:
- Jul 19, 2005, 6:27:06 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/test_gun.cc
r4893 r4895 53 53 54 54 this->objectComponent1 = new PNode(); 55 Animation3D* animation1 = this-> createAnimation(WS_SHOOTING, this->objectComponent1);56 Animation3D* animation2 = this-> createAnimation(WS_ACTIVATING, this);57 Animation3D* animation3 = this-> createAnimation(WS_DEACTIVATING, this);55 Animation3D* animation1 = this->getAnimation(WS_SHOOTING, this->objectComponent1); 56 Animation3D* animation2 = this->getAnimation(WS_ACTIVATING, this); 57 Animation3D* animation3 = this->getAnimation(WS_DEACTIVATING, this); 58 58 //parent->addChild(this->objectComponent1, PNODE_ALL); 59 59 this->addChild(this->objectComponent1, PNODE_ALL); … … 85 85 animation1->addKeyFrame(Vector(0, 0, .5), Quaternion(), 0.0, ANIM_LINEAR, ANIM_CONSTANT); 86 86 87 animation2->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0. 1, ANIM_LINEAR, ANIM_CONSTANT);88 animation2->addKeyFrame(Vector(-2.6, 0.1, -3.0), Quaternion(), 0. 1, ANIM_LINEAR, ANIM_CONSTANT);89 90 animation3->addKeyFrame(Vector(-2.6, 0.1, -3.0), Quaternion(), 0. 1, ANIM_LINEAR, ANIM_CONSTANT);91 animation3->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0. 1, ANIM_LINEAR, ANIM_CONSTANT);87 animation2->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); 88 animation2->addKeyFrame(Vector(-2.6, 0.1, -3.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); 89 90 animation3->addKeyFrame(Vector(-2.6, 0.1, -3.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); 91 animation3->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); 92 92 } 93 93 /* … … 102 102 this->setStateDuration(WS_SHOOTING, .2); 103 103 this->setStateDuration(WS_RELOADING, .5); 104 //this->setStateDuration(WS_ACTIVATING, .4); 105 //this->setStateDuration(WS_DEACTIVATING, .4); 104 106 105 107 this->energy = 100; … … 181 183 void TestGun::destroy () 182 184 {} 183 184 185 /**186 * is called, when there is no fire button pressed187 */188 void TestGun::weaponIdle()189 {}190 191 185 192 186 /**
Note: See TracChangeset
for help on using the changeset viewer.