aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-06 16:41:51 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-06 16:41:51 +0100
commit0d0943d23364d7110f0232e3564f4ea63af13db2 (patch)
tree8ae2f2cb22690101b70c1cd5f1b6ea33863eedcf /src/crepe/api
parent9eac8d31b25c234a21b1d188df17e77e71f48088 (diff)
Implemented flee and arrive behaviors
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/AI.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/AI.h b/src/crepe/api/AI.h
index 046426d..d4bd9d3 100644
--- a/src/crepe/api/AI.h
+++ b/src/crepe/api/AI.h
@@ -44,9 +44,9 @@ public:
// The target to flee from
vec2 flee_target;
// The distance at which the entity will start to flee from the target
- float square_flee_panic_distance = 100.0f * 100.0f;
+ float square_flee_panic_distance = 200.0f * 200.0f;
// The deceleration rate for the arrive behavior (higher values will make the entity decelerate faster (less overshoot))
- float arrive_deceleration = 2.0f;
+ float arrive_deceleration = 40.0f;
private:
int flags = 0;