Changeset 5982 in orxonox.OLD for trunk/src/world_entities/space_ships
- Timestamp:
- Dec 8, 2005, 12:22:53 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r5978 r5982 88 88 Weapon* wpLeft = new TestGun(1); 89 89 wpLeft->setName("testGun Left"); 90 Weapon* cannon = dynamic_cast<Weapon*>(Factory:: getFirst()->fabricate(CL_CANNON));90 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_CANNON)); 91 91 92 92 cannon->setName("BFG"); … … 118 118 xMouse = yMouse = 0; 119 119 mouseSensitivity = 0.001; 120 120 121 121 cycle = 0.0; 122 122 123 123 124 124 travelSpeed = 15.0; … … 271 271 272 272 //orient the spaceship model in the direction of movement. 273 273 274 274 // this is the air friction (necessary for a smooth control) 275 275 if(velocity.len() != 0) velocity -= velocity*0.01; 276 276 277 277 this->shiftCoor(Vector(0,1,0)*cos(this->cycle*2.0)*0.02); 278 278 279 279 //SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2); 280 280 … … 327 327 //rotVal += .4; 328 328 } 329 329 330 330 if( this->bRollL /* > -this->getRelCoor().z*2*/) 331 331 { … … 385 385 void SpaceShip::process(const Event &event) 386 386 { 387 388 387 388 389 389 if( event.type == SDLK_a) 390 390 this->bRollL = event.bPressed;
Note: See TracChangeset
for help on using the changeset viewer.