mirror of
https://github.com/Floriansylvain/SFMLplayground.git
synced 2026-08-19 11:43:24 +02:00
feat: velocity tracking w/ rendering lines
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user