fix collision detection

This commit is contained in:
2021-01-03 13:35:26 +01:00
parent 7e0554bf65
commit 0a6b133c19
3 changed files with 2 additions and 3 deletions

View File

@ -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);