2016-04-11 21:38:03 +00:00
|
|
|
#ifndef __SKIZZLE_CONSTANTS_HPP__
|
|
|
|
#define __SKIZZLE_CONSTANTS_HPP__
|
2016-03-14 20:20:40 +00:00
|
|
|
|
2016-04-03 19:05:27 +00:00
|
|
|
#include <SFML/System.hpp>
|
|
|
|
|
2016-03-14 20:20:40 +00:00
|
|
|
namespace Constants {
|
|
|
|
/**
|
|
|
|
* Constante d'attraction. Utilisée dans la formule
|
|
|
|
* pour le calcul de l'attraction coulombienne entre
|
|
|
|
* deux objets
|
|
|
|
*/
|
2016-04-11 11:06:43 +00:00
|
|
|
static const float ATTRACTION = 500000;
|
2016-03-14 20:20:40 +00:00
|
|
|
|
2016-03-18 15:48:22 +00:00
|
|
|
/**
|
|
|
|
* Correction positionnelle : pourcentage de correction
|
|
|
|
* et seuil de correction
|
|
|
|
*/
|
2016-04-08 13:53:30 +00:00
|
|
|
static const float CORRECTION_PERCENTAGE = .5f;
|
|
|
|
static const float CORRECTION_SLOP = .02f;
|
2016-03-18 17:33:46 +00:00
|
|
|
|
2016-03-30 18:28:51 +00:00
|
|
|
/**
|
|
|
|
* Taille de la grille des blocs en pixels
|
|
|
|
*/
|
|
|
|
static const float GRID = 32;
|
2016-03-14 20:20:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|