better tracks for overhead

This commit is contained in:
royjr
2025-09-23 07:21:57 -04:00
parent cef3163c7c
commit 95dcc23887
+7 -2
View File
@@ -85,8 +85,13 @@ void ModelRenderer::draw(QPainter &painter, const QRect &surface_rect) {
}
QPointF screen_pt;
if (mapToScreen(d_pred, -y_pred, path_offset_z, &screen_pt)) {
float radius = std::clamp(15.0f / (1.0f + d_pred * 0.1f), 3.0f, 8.0f);
drawRadarPoint(painter, screen_pt, track.getVRel(), radius * 3);
float radius;
if (visual_style_ == 3) {
radius = 8.0f;
} else {
radius = std::clamp(15.0f / (1.0f + d_pred * 0.1f), 3.0f, 8.0f) * 3;
}
drawRadarPoint(painter, screen_pt, track.getVRel(), radius);
}
}
}