22class EXPCL_PANDAAI Flee {
26 LVecBase3 _flee_position;
28 LVecBase3 _flee_direction;
29 double _flee_distance;
30 double _flee_relax_distance;
31 LVecBase3 _flee_present_pos;
33 bool _flee_activate_done;
36 double relax_distance = 10.0,
float flee_wt = 1.0);
38 Flee(
AICharacter *ai_ch, LVecBase3 pos,
double panic_distance = 10.0,
39 double relax_distance = 10.0,
float flee_wt = 1.0);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void flee_activate()
This function checks for whether the target is within the panic distance.
LVecBase3 do_flee()
This function performs the flee and returns a flee force which is used in the calculate_prioritized f...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...