aboutsummaryrefslogtreecommitdiff
path: root/src/drone_controller.cc
diff options
context:
space:
mode:
authorccolin2021-01-03 13:35:26 +0100
committerccolin2021-01-03 13:35:26 +0100
commit0a6b133c19ccc69ecc6bcf6be83e8ec7f5f8150f (patch)
treefb9de23b150c718ea303ec61461a66820a085525 /src/drone_controller.cc
parent7e0554bf65b9be61f3b73625d762a5043ad2af0f (diff)
fix collision detection
Diffstat (limited to 'src/drone_controller.cc')
-rw-r--r--src/drone_controller.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drone_controller.cc b/src/drone_controller.cc
index 514a166..3284acf 100644
--- a/src/drone_controller.cc
+++ b/src/drone_controller.cc
@@ -116,7 +116,7 @@ void DroneController::seek(int frame) {
void DroneController::computeCollisions(double sphere_radius) {
- double sqDist = sphere_radius * sphere_radius * 2;
+ double sqDist = sphere_radius * sphere_radius * 4;
for (int i = 0; i < duration; i++) {
for (Drone &a : drones) {
a.setTo(i);