Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2005, 6:27:06 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: messed things up a bit, try fixing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/test_gun.cc

    r4893 r4895  
    5353
    5454  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);
    5858  //parent->addChild(this->objectComponent1, PNODE_ALL);
    5959  this->addChild(this->objectComponent1, PNODE_ALL);
     
    8585      animation1->addKeyFrame(Vector(0, 0, .5), Quaternion(), 0.0, ANIM_LINEAR, ANIM_CONSTANT);
    8686
    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);
    9292    }
    9393/*
     
    102102  this->setStateDuration(WS_SHOOTING, .2);
    103103  this->setStateDuration(WS_RELOADING, .5);
     104  //this->setStateDuration(WS_ACTIVATING, .4);
     105  //this->setStateDuration(WS_DEACTIVATING, .4);
    104106
    105107  this->energy = 100;
     
    181183void TestGun::destroy ()
    182184{}
    183 
    184 
    185 /**
    186  *  is called, when there is no fire button pressed
    187 */
    188 void TestGun::weaponIdle()
    189 {}
    190 
    191185
    192186/**
Note: See TracChangeset for help on using the changeset viewer.