1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub const DAMAGE_MEMORY_DURATION: f64 = 0.25;
pub const FLEE_DURATION: f32 = 3.0;
pub const NPC_PICKUP_RANGE: f32 = 2.5;
pub const MAX_PATROL_DIST: f32 = 50.0;
pub const MAX_PATH_DIST: f32 = 170.0;
/// If the pet is any further than this value from its stay position, it will
/// start walking back there
pub const MAX_STAY_DISTANCE: f32 = 10.0;
pub const PARTIAL_PATH_DIST: f32 = 50.0;
pub const SEPARATION_DIST: f32 = 10.0;
pub const SEPARATION_BIAS: f32 = 0.8;
/// The distance within which agents will flee directly away if attacked from
/// distance or if attacker detected.
pub const NORMAL_FLEE_DIR_DIST: f32 = 20.0;
pub const AVG_FOLLOW_DIST: f32 = 6.0;
pub const RETARGETING_THRESHOLD_SECONDS: f64 = 10.0;
pub const HEALING_ITEM_THRESHOLD: f32 = 0.5;
pub const IDLE_HEALING_ITEM_THRESHOLD: f32 = 0.999;
pub const DEFAULT_ATTACK_RANGE: f32 = 2.0;
pub const STD_AWARENESS_DECAY_RATE: f32 = -0.05;