diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-06 16:41:51 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-06 16:41:51 +0100 |
commit | 0d0943d23364d7110f0232e3564f4ea63af13db2 (patch) | |
tree | 8ae2f2cb22690101b70c1cd5f1b6ea33863eedcf /src/crepe/api/AI.h | |
parent | 9eac8d31b25c234a21b1d188df17e77e71f48088 (diff) |
Implemented flee and arrive behaviors
Diffstat (limited to 'src/crepe/api/AI.h')
-rw-r--r-- | src/crepe/api/AI.h | 4 |
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; |