aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-11 14:06:26 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-11 14:06:26 +0100
commit6f89e67c9b2dfcb182ed2fa9d9a0ea7afa53fbf0 (patch)
tree0e4a9b93af9674f3b8cf304bb5d830f09fd43087 /src/crepe/api
parentbea86a6fcea272d7cc7fba44d6c489bd70587578 (diff)
Clarified 0.75f
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/AI.cpp4
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);