Changeset 5911 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/space_ships
- Timestamp:
- Dec 4, 2005, 2:30:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r5909 r5911 279 279 //Vector rot(0.0, 0.0, 0.0); 280 280 //float rotVal = 0.0; 281 /* FIXME: calculating the direction and orthDirection every timeSlice is redundant! save it somewhere */ 281 282 282 /* calculate the direction in which the craft is heading */ 283 Vector forwardDirection (1.0, 0.0, 0.0); //x283 Vector forwardDirection = (this->getAbsDirX()).getNormalized(); //x 284 284 //direction = this->absDirection.apply (direction); 285 Vector rightDirection (0.0, 0.0, 0.1); //z285 Vector rightDirection = (this->getAbsDirZ()).getNormalized(); //z 286 286 //orthDirection = orthDirection.cross (direction); 287 Vector upDirection = (this->getAbsDir V()).getNormalized(); //y287 Vector upDirection = (this->getAbsDirY()).getNormalized(); //y 288 288 289 289
Note: See TracChangeset
for help on using the changeset viewer.