- fixed problem with last_menu not being able to handle menues deeper than two submenues
[supertux.git] / src / physic.h
index c5a82d2..81e4451 100644 (file)
@@ -28,6 +28,10 @@ public:
     /** sets velocity to a fixed value */
     void set_velocity(float vx, float vy);
 
+    /** velocities invertion */
+    void inverse_velocity_x();
+    void inverse_velocity_y();
+
     float get_velocity_x();
     float get_velocity_y();
     
@@ -43,7 +47,7 @@ public:
     void enable_gravity(bool gravity_enabled);
 
     /** applies the physical simulation to given x and y coordinates */
-    void apply(float &x, float &y); 
+    void apply(float frame_ratio, float &x, float &y); 
 
 private:
     /// horizontal and vertical acceleration