Make sure fish is facing down when killed
[supertux.git] / src / physic.hpp
index abfdba5..f8e807d 100644 (file)
@@ -43,7 +43,7 @@ public:
   void set_velocity_x(float vx);
   void set_velocity_y(float vy);
 
-  /// Velocities invertion.
+  /// Velocity inversion.
   void inverse_velocity_x();
   void inverse_velocity_y();
 
@@ -81,10 +81,17 @@ private:
   float ax, ay;
   /// horizontal and vertical velocity
   float vx, vy;
-  /// should we respect gravity in out calculations?
+  /// should we respect gravity in our calculations?
   bool gravity_enabled_flag;
-  /// current gravity to apply to object, if enabled
+  /// current gravity (multiplied by 100) to apply to object, if enabled
   float gravity;
 };
 
+class UsesPhysic
+{
+public:
+  Physic physic;
+  friend class Sector;
+};
+
 #endif