feat: BallFactory for random ball generation

This commit is contained in:
Florian Sylvain
2025-05-11 01:28:07 +02:00
parent 885ed1ec4b
commit f276d243ec
6 changed files with 73 additions and 16 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ constexpr float GRAVITY = 8000.f;
constexpr float RESTITUTION = 0.8f;
constexpr float FRICTION = 0.9f;
constexpr float BALL_RADIUS = 20.f;
constexpr float IMPULSE = 3000.f;
constexpr float IMPULSE = 2500.f;
constexpr float REST_PIXEL_VELOCITY = 2.0f;
constexpr unsigned BALL_QUANTITY = 10;
} // namespace Constants