Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9102 in orxonox.OLD for branches/presentation/src


Ignore:
Timestamp:
Jul 4, 2006, 4:41:23 AM (19 years ago)
Author:
patrick
Message:

weapon position fixed also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r9101 r9102  
    129129  this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    130130  this->getWeaponManager().setSlotDirection(1, Quaternion(M_PI_4*.5, Vector(1,0,0)));
    131 
    132 
    133   AABB* box = this->getModelAABB();
    134   if( box != NULL)
    135   {
    136     this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * 2.0f - 0.7, 1.1));
    137     this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * 2.0f, 0.0));
    138   }
    139   else
    140   {
    141     this->getWeaponManager().setSlotPosition(0, Vector(1.5, -0.7, 1.1));
    142     this->getWeaponManager().setSlotPosition(1, Vector(5.0, 0.0, 0.0));
    143   }
     131  this->getWeaponManager().setSlotPosition(0, Vector(1.5, -0.7, 1.1));
     132  this->getWeaponManager().setSlotPosition(1, Vector(5.0, 0.0, 0.0));
    144133
    145134
     
    210199    State::getCameraNode()->setRelCoor(0, box->halfLength[1] * 2.0f, 0);
    211200    State::getCameraTargetNode()->setRelCoor(10, box->halfLength[1] * 2.0f, 0);
     201
     202    this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * 2.0f - 0.7, 1.1));
     203    this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * 2.0f, 0.0));
    212204  }
    213205}
Note: See TracChangeset for help on using the changeset viewer.