Changeset 6430 in orxonox.OLD for trunk/src/world_entities/space_ships
- Timestamp:
- Jan 8, 2006, 12:14:49 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r6426 r6430 132 132 cycle = 0.0; 133 133 134 this->setMaxEnergy(100); 135 this->setEnergy(80); 134 136 135 137 travelSpeed = 15.0; … … 212 214 this->attachCamera(); 213 215 216 this->setEnergyWidgetVisibilit(true); 214 217 215 218 } … … 220 223 this->detachCamera(); 221 224 225 this->setEnergyWidgetVisibilit(false); 222 226 223 227 } … … 315 319 316 320 //readjust 317 321 318 322 /* 319 323 In the game "Yager" the spaceship gets readjusted when the player moves the mouse. 320 324 I (bknecht) go and check it out how they do it, we could probably use this also in Orxonox. 321 325 */ 322 //if (xMouse != 0 && yMouse != 0) 323 326 //if (xMouse != 0 && yMouse != 0) 327 324 328 //if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0))); 325 329 //else if (this->getAbsDirZ().y < -0.1) this->shiftDir(Quaternion(-time*0.3, Vector(1,0,0)));
Note: See TracChangeset
for help on using the changeset viewer.