Correction de la collision circulaire

This commit is contained in:
Mattéo Delabre 2016-03-19 20:18:17 +01:00
parent dc9ebae7bd
commit dad579a3fa
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ bool Ball::getCollisionInfo(Ball& obj, sf::Vector2f& normal, float& depth) {
// Renvoie une normale apte à séparer les deux balles
if (length == 0) {
// TODO: supprimer les valeurs magiques
depth = 10;
depth = 20;
normal.x = 0;
normal.y = -1;
return true;