Changeset 6391 in orxonox.OLD for branches/spaceshipcontrol/src
- Timestamp:
- Jan 3, 2006, 10:27:13 AM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities/space_ships
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/helicopter.cc
r6378 r6391 27 27 #include "key_mapper.h" 28 28 #include "event_handler.h" 29 #include "state.h" 29 30 30 31 #include "graphics_engine.h" … … 175 176 // this->getWeaponManager()->setSlotPosition(9, Vector(-2.5, -0.3, 2.0)); 176 177 // this->getWeaponManager()->setSlotDirection(9, Quaternion(+M_PI, Vector(1,0,0)));: 178 179 this->getWeaponManager()->getFixedTarget()->setParent(this); 180 this->getWeaponManager()->getFixedTarget()->setRelCoor(100000,0,0); 181 182 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false); 177 183 178 184 } … … 194 200 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true); 195 201 this->attachCamera(); 202 196 203 197 204 } -
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r6255 r6391 299 299 300 300 //readjust 301 // if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0))); 301 302 /* 303 In the game "Yager" the spaceship gets readjusted when the player moves the mouse. 304 I (bknecht) go and check it out how they do it, we could probably use this also in Orxonox. 305 */ 306 //if (xMouse != 0 && yMouse != 0) 307 308 //if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0))); 302 309 //else if (this->getAbsDirZ().y < -0.1) this->shiftDir(Quaternion(-time*0.3, Vector(1,0,0))); 303 310 -
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.h
r6222 r6391 69 69 Vector velocity; //!< the velocity of the player. 70 70 Quaternion mouseDir; //!< the direction where the player wants to fly 71 Quaternion rotQuat;71 Quaternion rotQuat; 72 72 float travelSpeed; //!< the current speed of the player (to make soft movement) 73 73 float acceleration; //!< the acceleration of the player.
Note: See TracChangeset
for help on using the changeset viewer.