X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fmath%2Fphysic.h;h=71d7ccd440021524b02aabb0723e294ac4f232d1;hb=2fd963388c2dae6a30f82c99b679a73e8bc5917d;hp=f269cb85d582241dd9990df94edb41f084e12823;hpb=4b476ec30e7dd62249328054402d6493c20a685d;p=supertux.git diff --git a/lib/math/physic.h b/lib/math/physic.h index f269cb85d..71d7ccd44 100644 --- a/lib/math/physic.h +++ b/lib/math/physic.h @@ -21,7 +21,7 @@ #ifndef SUPERTUX_PHYSIC_H #define SUPERTUX_PHYSIC_H -#include "../math/vector.h" +#include "math/vector.h" namespace SuperTux { @@ -67,11 +67,7 @@ namespace SuperTux /// Enables or disables handling of gravity. void enable_gravity(bool gravity_enabled); - /// Applies the physical simulation to given x and y coordinates. - void apply(float frame_ratio, float &x, float &y, float gravity = 10.0f); - - /// applies the physical simulation to given x and y coordinates. - void apply(Vector& vector, float frame_ratio, float gravity = 10.0f); + Vector get_movement(float elapsed_time); private: /// horizontal and vertical acceleration