feat: implement multithreading for collision resolution and ball updates

This commit is contained in:
Florian Sylvain
2025-05-11 06:35:47 +02:00
parent d1c4f36963
commit c58a2cead2
8 changed files with 182 additions and 29 deletions
+2 -2
View File
@@ -8,6 +8,6 @@ constexpr float RESTITUTION = 0.8f;
constexpr float FRICTION = 0.9f;
constexpr float IMPULSE = 2000.f;
constexpr float REST_PIXEL_VELOCITY = 2.0f;
constexpr float BALL_RADIUS = 15.f;
constexpr unsigned BALL_QUANTITY = 500;
constexpr float BALL_RADIUS = 6.f;
constexpr unsigned BALL_QUANTITY = 1000;
} // namespace Constants