From 869875f7e0aa3dc462ffa5eff3d90981cf263d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Sat, 9 Apr 2016 04:57:54 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20propri=C3=A9t=C3=A9=20gravit?= =?UTF-8?q?=C3=A9=20sur=20level=20en=20vue=20de=20l'ajout=20du=20bloc=20ch?= =?UTF-8?q?angeur=20de=20gravit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object.cpp b/src/object.cpp index ca35960..474d7c2 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -91,7 +91,7 @@ sf::Vector2f Object::getForces(const Level& level) const { const std::vector& objects = level.getObjects(); // force de gravité - forces += sf::Vector2f(0, getMass() * Constants::GRAVITY); + forces += getMass() * level.getGravity(); // force d'attraction entre objets chargés if (getCharge() != 0) {