This commit is contained in:
Mattéo Delabre 2016-03-28 14:59:09 +02:00
parent 99af82bf90
commit 14f9587fd8
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ sf::Vector2f Object::getForces(EngineState& state) {
sf::Vector2f forces(0, 0);
// force de gravité
forces += sf::Vector2f(0, Constants::GRAVITY);
forces += sf::Vector2f(0, getMass() * Constants::GRAVITY);
// force d'attraction entre objets chargés
if (getCharge() != 0) {