Changeset 10092 in orxonox.OLD for branches/playability/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Dec 18, 2006, 8:39:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.cc
r10081 r10092 953 953 PRINTF(4)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClassCName()); 954 954 } 955 956 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0)); 957 this->shiftCoor (this->velocity * dt); 958 959 float angle = this->velocity.z / travelSpeed * pi / 3; 960 if (angle > pi/4) angle = pi/4; 961 if (angle < -pi/4) angle = -pi/4; 962 this->setRelDirSoft(Quaternion(angle, Vector(1,0,0)), 5.0f); 955 963 } 956 964
Note: See TracChangeset
for help on using the changeset viewer.