Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4969 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc


Ignore:
Timestamp:
Aug 4, 2005, 11:19:29 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: ability to set a Slots Direction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.cc

    r4967 r4969  
    8787
    8888  Weapon* turret = new Turret(this->weaponMan);
     89  Weapon* turret2 = new Turret(this->weaponMan);
    8990  this->weaponMan->addWeapon(wpLeft, 1, 0);
    9091  this->weaponMan->addWeapon(wpRight,1 ,1);
    9192  this->weaponMan->addWeapon(turret, 2, 2);
    92   this->weaponMan->addWeapon(turret, 3, 2);
     93  this->weaponMan->addWeapon(turret2, 2, 3);
    9394  this->weaponMan->addWeapon(wpLeft, 3, 0);
    9495  this->weaponMan->addWeapon(wpRight,3 ,1);
     
    113114
    114115  this->weaponMan = new WeaponManager(this);
    115   this->weaponMan->setSlotCount(3);
     116  this->weaponMan->setSlotCount(4);
    116117  this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0));
    117118  this->weaponMan->setSlotPosition(1, Vector(-2.6, .1, 3.0));
    118   this->weaponMan->setSlotPosition(2, Vector(-1.5, .5, 0));
     119  this->weaponMan->setSlotPosition(2, Vector(-1.5, .5, -.5));
     120  this->weaponMan->setSlotDirection(2, Quaternion(-M_PI_4*.5, Vector(1,0,0)));
     121  this->weaponMan->setSlotPosition(3, Vector(-1.5, .5, .5));
     122  this->weaponMan->setSlotDirection(3, Quaternion(M_PI_4*.5, Vector(1,0,0)));
    119123}
    120124
Note: See TracChangeset for help on using the changeset viewer.