Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10526 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Jan 30, 2007, 11:37:43 PM (18 years ago)
Author:
patrick
Message:

probably the parenting fix

Location:
trunk/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/mount_point.cc

    r10523 r10526  
    4242
    4343  this->_name = name;
    44   this->setAbsCoor( center);
    45   this->setAbsDir( Quaternion(forward, up));
     44  this->setRelCoor( center);
     45  this->setRelDir( Quaternion(forward, up));
    4646
    4747  this->init();
  • trunk/src/world_entities/space_ships/space_ship.cc

    r10516 r10526  
    616616  {
    617617    this->bRight = event.bPressed;
    618     printf("ShipCoors: %f , %f, %f \n", this->getAbsCoor().x, this->getAbsCoor().y, this->getAbsCoor().z);
    619618  }
    620619  else if( event.type == KeyMapper::PEV_FORWARD)
    621620  {
    622621    this->bForward = event.bPressed; //this->shiftCoor(0,.1,0);
    623 
    624622  }
    625623  else if( event.type == KeyMapper::PEV_BACKWARD)
     
    11551153     CameraMan* cm = State::getCameraman();
    11561154     Camera* c = cm->getCurrentCam();
    1157      
    1158      
     1155
     1156
    11591157  float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0);
    11601158  float y = x / c->getAspectRatio() / this->actionWidthPercentage;
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r10438 r10526  
    434434void WeaponManager::fire()
    435435{
    436 //   printf("firing WM: ");
    437436  Weapon* firingWeapon;
    438437  for(int i = 0; i < this->slotCount; i++)
    439438  {
    440439//     printf("%i ", i);
    441           firingWeapon = this->currentSlotConfig[i]->getCurrentWeapon();
    442       if( firingWeapon != NULL && firingWeapon->getCurrentState() == WS_SHOOTING) continue;
    443           if( firingWeapon != NULL) firingWeapon->requestAction(WA_SHOOT);
     440    firingWeapon = this->currentSlotConfig[i]->getCurrentWeapon();
     441    if( firingWeapon != NULL)
     442    {
     443      PRINTF(0)("!=NULL\n");
     444      if( firingWeapon->getCurrentState() == WS_SHOOTING) continue;
     445      PRINTF(0)("FIRE\n");
     446
     447      firingWeapon->requestAction(WA_SHOOT);
     448    }
    444449  }
    445450//   printf("\n");
Note: See TracChangeset for help on using the changeset viewer.