From 6f89e67c9b2dfcb182ed2fa9d9a0ea7afa53fbf0 Mon Sep 17 00:00:00 2001 From: max-001 Date: Wed, 11 Dec 2024 14:06:26 +0100 Subject: Clarified 0.75f --- src/crepe/api/AI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crepe/api/AI.cpp') diff --git a/src/crepe/api/AI.cpp b/src/crepe/api/AI.cpp index 34e1438..a4d3e98 100644 --- a/src/crepe/api/AI.cpp +++ b/src/crepe/api/AI.cpp @@ -47,8 +47,8 @@ void AI::make_oval_path(float radius_x, float radius_y, const vec2 & center, flo if (step > 2 * M_PI / MIN_STEP) { step = 2 * M_PI / MIN_STEP; } - // The path node distance is determined by the step size and the radius - path_node_distance = max_radius * step * 0.75f; + // The path node distance is determined by the step size times the radius times 75% + this->path_node_distance = max_radius * step * 0.75f; auto rotate_point = [rotation](vec2 point, vec2 center) { float s = sin(rotation); -- cgit v1.2.3