feat: velocity tracking w/ rendering lines

This commit is contained in:
Florian Sylvain
2025-05-11 00:18:01 +02:00
parent 92ca5cd5fb
commit 874b54cf36
5 changed files with 78 additions and 3 deletions
+7
View File
@@ -6,8 +6,10 @@
#include <memory>
#include <vector>
#include "Ball.hpp"
#include "PhysicalObject.hpp"
class Ball;
class PhysicalObject;
class Game {
@@ -24,6 +26,11 @@ class Game {
void update();
void render();
void drawLine(const sf::Vector2f& start, const sf::Vector2f& direction,
float length, const sf::Color& color);
void drawDirectionLine(const Ball* ball);
void drawVelocityLine(const Ball* ball);
public:
Game();
void run();