OGL Engine 1.2.0-dev
Loading...
Searching...
No Matches
constants.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <cstdint>
8#include <bitset>
9
10namespace Engine {
12 constexpr std::size_t MAX_ENTITIES = 5000;
13 constexpr float COLLISION_EXPIRE_THRESHOLD = 0.1f;
14 constexpr float PHYSICS_SLEEP_SPEED_THRESHOLD = 0.5f;
15 constexpr float PHYSICS_SLEEP_TIME_THREHSOLD = 1.0f;
25 constexpr float PHYSICS_UNITS_PER_METER = 100.0f;
33 constexpr float PHYSICS_DAMPING_FACTOR = 0.99f;
35 constexpr float FIXED_STEP_FRAMERATE = 60.0f;
37 constexpr int MAX_PHYSICS_ITERATIONS = 1;
44 constexpr float SPATIAL_HASH_CELL_SIZE = 250.0f;
45}
Definition app.cpp:14
constexpr float SPATIAL_HASH_CELL_SIZE
Définit la taille maximale d'une cellule dans un spatial hash (utilisé dans les système physiques)
Definition constants.hpp:44
constexpr int MAX_PHYSICS_ITERATIONS
Le nombre maximum d'itérations autorisés dans les systèmes physiques pour résoudre collisions et cont...
Definition constants.hpp:37
constexpr float PHYSICS_SLEEP_SPEED_THRESHOLD
Definition constants.hpp:14
constexpr float PHYSICS_DAMPING_FACTOR
Facteur de ralentissement dans le vide.
Definition constants.hpp:33
constexpr float FIXED_STEP_FRAMERATE
Vitesse d'éxecution de la boucle d'update fixée dans le cycle de vie (en frame per second)
Definition constants.hpp:35
constexpr std::size_t MAX_ENTITIES
Définition du maximum d'entités qui peuvent exister dans une scène.
Definition constants.hpp:12
constexpr float COLLISION_EXPIRE_THRESHOLD
Definition constants.hpp:13
constexpr float PHYSICS_SLEEP_TIME_THREHSOLD
Definition constants.hpp:15
constexpr float PHYSICS_UNITS_PER_METER
Facteur d'echelle pour le système physique.
Definition constants.hpp:25