Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 7:40:40 PM (17 years ago)
Author:
nicolasc
Message:

bump, minor fixes

Location:
branches/presentation/src/world_entities/space_ships
Files:
2 edited

Legend:

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

    r10720 r10721  
    205205
    206206  this->mouseSensitivity = 4;
     207  this->xMouse = this->yMouse = 0;
     208
    207209
    208210  this->weaponMan.changeWeaponConfig(0);
     
    222224  loadEngine(15);
    223225
    224 //   this->loadModel("models/spaceships/fighter_redesign9.obj");
    225   //this->setVisibiliy(false);
    226 
    227226  bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false;
    228 
    229 //   this->setHealthMax(shieldMax);
    230 //   this->setHealth(shieldCur);
    231227
    232228  this->travelNode = new PNode();
     
    261257
    262258  this->secWeaponMan.getFixedTarget()->setParent(this);
    263   this->secWeaponMan.getFixedTarget()->setRelCoor(100000,0,0);
     259  this->secWeaponMan.getFixedTarget()->setRelCoor(50000,0,0);
    264260  this->secWeaponMan.setRotationSpeed(0);
    265261
     
    289285  //this->airFriction = 0.0f;
    290286
    291   srand(time(0));  //initaialize RNG
     287//   srand(time(0));  //initaialize RNG
    292288
    293289  this->travelNode->debugDraw();
     
    377373  this->resetElectronic();
    378374  this->velocity = Vector(0.0, 0.0, 0.0);
     375  this->xMouse = this->yMouse = 0;
    379376}
    380377
     
    593590//     printf("Mouse Coord: %f, %f\n", this->xMouse, this->yMouse);
    594591    this->weaponMan.getFixedTarget()->setRelCoor(100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse);
    595     this->secWeaponMan.getFixedTarget()->setRelCoor(100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse);
     592    this->secWeaponMan.getFixedTarget()->setRelCoor(50000, -50 * this->mouseSensitivity * yMouse, 50 * this->mouseSensitivity * xMouse);
    596593  }
    597594  else if (!(State::getCamera()->getEventHandling()))
  • branches/presentation/src/world_entities/space_ships/space_ship.h

    r10719 r10721  
    202202
    203203
    204     Quaternion            mouseDir;           //!< the direction where the player wants to fly
     204    //Quaternion            mouseDir;           //!< the direction where the player wants to fly
    205205    /*Quaternion            oldMouseDir;        //!< the direction where the player wanted to fly
    206206    float                 shipInertia;        //!< the inertia of the ship(how fast the ship reacts to a mouse input)
Note: See TracChangeset for help on using the changeset viewer.