diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-11 14:06:26 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-11 14:06:26 +0100 |
commit | 6f89e67c9b2dfcb182ed2fa9d9a0ea7afa53fbf0 (patch) | |
tree | 0e4a9b93af9674f3b8cf304bb5d830f09fd43087 /src/crepe/api/AI.cpp | |
parent | bea86a6fcea272d7cc7fba44d6c489bd70587578 (diff) |
Clarified 0.75f
Diffstat (limited to 'src/crepe/api/AI.cpp')
-rw-r--r-- | src/crepe/api/AI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |