From 7e0554bf65b9be61f3b73625d762a5043ad2af0f Mon Sep 17 00:00:00 2001 From: ccolin Date: Sun, 3 Jan 2021 13:27:01 +0100 Subject: collision sphere previsualization --- src/drone_controller.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/drone_controller.hh') diff --git a/src/drone_controller.hh b/src/drone_controller.hh index bcf1a1a..de9385d 100644 --- a/src/drone_controller.hh +++ b/src/drone_controller.hh @@ -19,6 +19,12 @@ class DroneController : public QObject, public Painter { QVector drones; QTimer timer; bool paused = true; + bool draw_spheres = false; + double sphere_radius = 0; + QTimer sphere_timer; + + static OpenGLMesh *sphere; + static const unsigned char sphere_neutral[]; static bool collides(const Drone &a, const Drone &b, double radius); @@ -43,6 +49,7 @@ public slots: void resume(); void seek(int frame); void computeCollisions(double sphere_radius); + void displaySpheres(double sphere_radius); }; -- cgit v1.2.3-70-g09d2