X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fmath%2Fphysic.h;h=71d7ccd440021524b02aabb0723e294ac4f232d1;hb=20a97191a5899f31c3c10012fd1f8c67bb23021f;hp=bae4dd3a05cb78776836306bfa3892f5aafffc5d;hpb=edaacb3651cf0560314dd008d7243be4b3b2f8c6;p=supertux.git diff --git a/lib/math/physic.h b/lib/math/physic.h index bae4dd3a0..71d7ccd44 100644 --- a/lib/math/physic.h +++ b/lib/math/physic.h @@ -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