aboutsummaryrefslogtreecommitdiff
path: root/src/drone_controller.hh
diff options
context:
space:
mode:
authorccolin2021-01-03 13:27:01 +0100
committerccolin2021-01-03 13:27:20 +0100
commit7e0554bf65b9be61f3b73625d762a5043ad2af0f (patch)
tree09d8f976d428aa3676f7a9574da2689e30477361 /src/drone_controller.hh
parent928d45c3fbfb6b00d8e0b79b63934ebd080b9456 (diff)
collision sphere previsualization
Diffstat (limited to 'src/drone_controller.hh')
-rw-r--r--src/drone_controller.hh7
1 files changed, 7 insertions, 0 deletions
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<Drone> 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);
};