From 62b4c53a366c3c70941863f61c754f4a3eb6d90a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Fri, 18 Mar 2016 18:28:03 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20constante=20par=20d=C3=A9faut?= =?UTF-8?q?=20pour=20le=20rebond?= 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 2a5177a..9807f3c 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -5,7 +5,7 @@ Object::Object(float x, float y) : acceleration(0, 0), velocity(0, 0), position(x, y), accelerationLine(sf::Lines, 2), velocityLine(sf::Lines, 2), - mass(1.f), inv_mass(1.f), charge(0.f), restitution(0.f), layer(10) {} + mass(1.f), inv_mass(1.f), charge(0.f), restitution(0.5f), layer(10) {} sf::Vector2f Object::getForces(EngineState& state) { sf::Vector2f forces(0, 0);