diff --git a/include/constants.hpp b/include/constants.hpp index 23bedea..5e59436 100644 --- a/include/constants.hpp +++ b/include/constants.hpp @@ -42,11 +42,6 @@ namespace Constants { * Taille de la grille des blocs en pixels */ static const float GRID = 32; - - /** - * Activation du débogage (affichage des vecteurs) - */ - static const bool DEBUG_MODE = false; } #endif diff --git a/include/object.hpp b/include/object.hpp index a3e3741..c342e2f 100644 --- a/include/object.hpp +++ b/include/object.hpp @@ -16,8 +16,6 @@ private: sf::Vector2f velocity; sf::Vector2f position; - sf::VertexArray acceleration_line; - sf::VertexArray velocity_line; mutable float inv_mass; float mass; diff --git a/src/object.cpp b/src/object.cpp index 00590f7..d0386d2 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -11,8 +11,6 @@ const unsigned int Object::PROP_LAYER = 6; Object::Object() : acceleration(0, 0), velocity(0, 0), position(0, 0), - acceleration_line(sf::Lines, 2), - velocity_line(sf::Lines, 2), inv_mass(-1.f), // valeurs par défaut pour les propriétés @@ -131,20 +129,7 @@ sf::Vector2f Object::getForces( } void Object::draw(Manager& manager) { - if (Constants::DEBUG_MODE) { - velocity_line[0].position = position; - velocity_line[0].color = sf::Color::Green; - velocity_line[1].position = position + velocity * 1.f; - velocity_line[1].color = sf::Color::Green; - acceleration_line[0].position = position; - acceleration_line[0].color = sf::Color::Red; - acceleration_line[1].position = position + acceleration * 1.f; - acceleration_line[1].color = sf::Color::Red; - - manager.getWindow().draw(velocity_line); - manager.getWindow().draw(acceleration_line); - } } void Object::updateVelocity(