X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=flatland.git;a=blobdiff_plain;f=universe.h;h=2758ad6610e42155d16644c93eb1696ded7ffdbb;hp=3537750ae5ae500568a3436ece3ec27e3b077b03;hb=90d1c5704c30e7f1d041e32eacbc2893741110e1;hpb=1f91ec6f67da83525115f49dcc7d535ff2e71ef0 diff --git a/universe.h b/universe.h index 3537750..2758ad6 100644 --- a/universe.h +++ b/universe.h @@ -58,6 +58,7 @@ public: // axis to speed up the computation void compute_pseudo_collisions(int nb_axis, int *nb_colliding_axis); + void apply_gravity(scalar_t dt, scalar_t fx, scalar_t fy); void apply_collision_forces(scalar_t dt); bool update(scalar_t dt, scalar_t padding);