Changeset 10721 in orxonox.OLD for branches/presentation/src/world_entities/space_ships
- Timestamp:
- Jun 18, 2007, 7:40:40 PM (18 years ago)
- 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 205 205 206 206 this->mouseSensitivity = 4; 207 this->xMouse = this->yMouse = 0; 208 207 209 208 210 this->weaponMan.changeWeaponConfig(0); … … 222 224 loadEngine(15); 223 225 224 // this->loadModel("models/spaceships/fighter_redesign9.obj");225 //this->setVisibiliy(false);226 227 226 bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false; 228 229 // this->setHealthMax(shieldMax);230 // this->setHealth(shieldCur);231 227 232 228 this->travelNode = new PNode(); … … 261 257 262 258 this->secWeaponMan.getFixedTarget()->setParent(this); 263 this->secWeaponMan.getFixedTarget()->setRelCoor( 100000,0,0);259 this->secWeaponMan.getFixedTarget()->setRelCoor(50000,0,0); 264 260 this->secWeaponMan.setRotationSpeed(0); 265 261 … … 289 285 //this->airFriction = 0.0f; 290 286 291 srand(time(0)); //initaialize RNG287 // srand(time(0)); //initaialize RNG 292 288 293 289 this->travelNode->debugDraw(); … … 377 373 this->resetElectronic(); 378 374 this->velocity = Vector(0.0, 0.0, 0.0); 375 this->xMouse = this->yMouse = 0; 379 376 } 380 377 … … 593 590 // printf("Mouse Coord: %f, %f\n", this->xMouse, this->yMouse); 594 591 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); 596 593 } 597 594 else if (!(State::getCamera()->getEventHandling())) -
branches/presentation/src/world_entities/space_ships/space_ship.h
r10719 r10721 202 202 203 203 204 Quaternion mouseDir; //!< the direction where the player wants to fly204 //Quaternion mouseDir; //!< the direction where the player wants to fly 205 205 /*Quaternion oldMouseDir; //!< the direction where the player wanted to fly 206 206 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.