Changeset 9110 in orxonox.OLD for trunk/src/world_entities/space_ships/spacecraft_2d.h
- Timestamp:
- Jul 4, 2006, 11:18:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/spacecraft_2d.h
r9061 r9110 22 22 23 23 virtual void loadParams(const TiXmlElement* root); 24 25 void setTravelSpeed(float travelSpeed); 26 void setTravelHeight(float travelHeight); 27 void setTravelDistance(const Vector2D& distance); 28 void setTravelDistance(float x, float y); 29 30 24 31 virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f); 25 void setTravelDirecton(const Quaternion& rot, float speed = 0.0);26 void setTravelSpeed(float travelSpeed);27 28 32 virtual void enter(); 29 33 virtual void leave(); 30 31 34 32 35 … … 39 42 40 43 virtual void process(const Event &event); 44 45 protected: 46 virtual void enterPlaymode(Playable::Playmode playmode); 41 47 42 48 private: … … 53 59 float mouseSensitivity; //!< the mouse sensitivity 54 60 61 /// Normal Movement. 62 Quaternion direction; //!< the direction of the Spacecraft2D. 63 float acceleration; //!< the acceleration of the Spacecraft2D. 64 float airFriction; //!< AirFriction. 65 66 float airViscosity; 55 67 56 68 57 PNode travelNode; 58 float travelSpeed; 69 /// 2D-traveling 70 PNode* travelNode; 71 float* toTravelHeight; 72 float travelSpeed; //!< the current speed of the Hove (to make soft movement) 59 73 74 Vector2D travelDistance; //!< Travel-Distance away from the TravelNode. 75 76 /// Camera 77 PNode cameraNode; 60 78 float cameraLook; 61 79 float rotation; 62 80 63 // Vector velocity; //!< the velocity of the Spacecraft2D.64 Quaternion direction; //!< the direction of the Spacecraft2D.65 float acceleration; //!< the acceleration of the Spacecraft2D.66 float maxSpeed; //!< The Maximal speed of the Spacecraft2D.67 68 float altitude; //!< The height in the Entity.69 81 70 82 ParticleEmitter* burstEmitter;
Note: See TracChangeset
for help on using the changeset viewer.