Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 5, 2006, 10:47:48 AM (18 years ago)
Author:
bensch
Message:

guns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc

    r9198 r9206  
    8686  //weapons:
    8787  Weapon* wpRight = dynamic_cast<Weapon*>(Factory::fabricate(CL_LASER_CANNON));
    88   wpRight->setName("testGun Right");
     88  wpRight->setName("Cannon_Right");
    8989  Weapon* wpLeft = dynamic_cast<Weapon*>(Factory::fabricate(CL_LASER_CANNON));
    90   wpLeft->setName("testGun Left");
    91   //Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_HYPERBLASTER));
     90  wpLeft->setName("Cannon_Left");
     91
     92  Weapon* turretLeft = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET));
     93  wpRight->setName("Turret_Left");
     94  Weapon* turretRight = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET));
     95  wpLeft->setName("Turret_Right");
    9296
    9397  //  cannon->setName("BFG");
     
    9599  this->addWeapon(wpLeft, 1, 0);
    96100  this->addWeapon(wpRight,1 ,1);
     101  this->addWeapon(turretLeft, 1, 2);
     102  this->addWeapon(turretRight, 1, 3);
     103
    97104  //this->addWeapon(cannon, 0, 2);
    98105
     
    197204
    198205  /// TODO: THESE ARE TOO MUCH
    199   this->getWeaponManager().setSlotPosition(3, Vector(-1.63, .678, -.652));
    200   this->getWeaponManager().setSlotDirection(3, Quaternion(-24/180 * M_PI, Vector(1,0,0)));
    201 
    202   this->getWeaponManager().setSlotPosition(4, Vector(-1.63, .678, .652));
    203   this->getWeaponManager().setSlotDirection(4, Quaternion(24/180 * M_PI, Vector(1,0,0)));
     206  this->getWeaponManager().setSlotPosition(3, Vector(-0.351, -.238, 1.406) * 5.0);
     207  this->getWeaponManager().setSlotDirection(3, Quaternion(-122/180 * M_PI, Vector(0,1,0)));
     208
     209  this->getWeaponManager().setSlotPosition(4, Vector(-0.351, -.238, -1.406) * 5.0);
     210  this->getWeaponManager().setSlotDirection(4, Quaternion(122/180 * M_PI, Vector(0,1,0)));
    204211
    205212  this->cameraNode.setRelCoor(1,5,0);
Note: See TracChangeset for help on using the changeset viewer.