Changeset 9971 in orxonox.OLD for branches/playability/src/world_entities/space_ships
- Timestamp:
- Nov 29, 2006, 4:29:22 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/space_ships
- Files:
-
- 2 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.h
r9970 r9971 30 30 31 31 virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f); 32 void setTravelSpeed(float travelSpeed); 33 void setTravelHeight(float travelHeight); 34 void setTravelDistance(const Vector2D& distance); 35 void setTravelDistance(float x, float y); 36 37 void setAirFriction(float friction) { this->airFriction = friction; }; 32 38 33 39 virtual void enter(); … … 62 68 //damage handler 63 69 virtual void damage(float pDamage, float eDamage); //!< pDamage physical damage, eDamage electronic damage 70 71 virtual void enterPlaymode(Playable::Playmode playmode); 72 virtual void movement (float dt); 64 73 65 74 private: … … 132 141 Vector velocity; //!< the velocity of the player. 133 142 Vector oldVelocity; //!< the velocity the player had last synced 143 144 // 2D-traveling 145 PNode* travelNode; 146 float travelSpeed; //!< the current speed of the Ship (to make soft movement) 147 148 // Camera 149 PNode cameraNode; 150 float cameraLook; 151 float rotation; 152 153 /* 134 154 Quaternion mouseDir; //!< the direction where the player wants to fly 135 155 Quaternion oldMouseDir; //!< the direction where the player wanted to fly 136 156 float shipInertia; //!< the inertia of the ship(how fast the ship reacts to a mouse input) 157 137 158 Quaternion rotQuat; 138 159 Quaternion pitchDir; 139 float travelSpeed; //!< the current speed of the player (to make soft movement)140 float acceleration; //!< the acceleration of the player.160 float dogdeSpeed; //!< the dogde Speed of the ship. 161 */ 141 162 163 Quaternion direction; //!< the direction of the ship. 164 float acceleration; //!< the acceleration of the ship. 165 float airFriction; //!< AirFriction. 142 166 float airViscosity; 143 167 -
branches/playability/src/world_entities/space_ships/spacecraft_2d.h
r9869 r9971 66 66 float acceleration; //!< the acceleration of the Spacecraft2D. 67 67 float airFriction; //!< AirFriction. 68 69 68 float airViscosity; 70 69
Note: See TracChangeset
for help on using the changeset viewer.