Changeset 10099 in orxonox.OLD for branches/playability/src
- Timestamp:
- Dec 19, 2006, 5:13:25 PM (18 years ago)
- Location:
- branches/playability/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/elements/glgui_energywidget.h
r8988 r10099 26 26 void setValue(float value); 27 27 28 inline GLGuiWidget* getNameWidget() {return &this->_name;}; 29 inline GLGuiWidget* getValueWidget() {return &this->_valueText;}; 30 inline GLGuiWidget* getBarWidget() {return &this->_bar;}; 31 28 32 protected: 29 33 virtual void resize(); -
branches/playability/src/world_entities/space_ships/space_ship.cc
r10098 r10099 926 926 this->setRelDirSoft(Quaternion(0, Vector(1,0,0)), 6); 927 927 } 928 929 930 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));931 this->shiftCoor (this->travelVelocity * dt);932 928 933 929 //normalisation of the vectors (vector sum must be <= travelspeed) … … 939 935 } 940 936 941 //this moves camera and ship along the travel path. 937 //this moves camera and ship along the travel path. 942 938 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0)); 943 944 //set new coordinates calculated through key- events. 945 this->shiftCoor (this->travelVelocity * dt); 939 946 940 break; 947 941 } … … 951 945 PRINTF(4)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClassCName()); 952 946 } 953 954 955 /* 956 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0)); 947 //set new coordinates calculated through key- events. 957 948 this->shiftCoor (this->travelVelocity * dt); 958 959 float angle = this->travelVelocity.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);963 */964 965 949 } 966 950
Note: See TracChangeset
for help on using the changeset viewer.