|
| | Evade (AICharacter *ai_ch, NodePath target_object, double panic_distance, double relax_distance, float evade_wt) |
| |
| LVecBase3 | do_evade () |
| | This function performs the evade and returns an evade force which is used in the calculate_prioritized function.
|
| |
| void | evade_activate () |
| | This function checks for whether the target is within the panic distance.
|
| |
Definition at line 22 of file evade.h.
◆ Evade()
| Evade::Evade |
( |
AICharacter * | ai_ch, |
|
|
NodePath | target_object, |
|
|
double | panic_distance, |
|
|
double | relax_distance, |
|
|
float | evade_wt ) |
◆ ~Evade()
◆ do_evade()
| LVecBase3 Evade::do_evade |
( |
| ) |
|
This function performs the evade and returns an evade force which is used in the calculate_prioritized function.
In case the AICharacter is past the (panic + relax) distance, it resets to evade_activate. This function is not to be used by the user.
Definition at line 38 of file evade.cxx.
◆ evade_activate()
| void Evade::evade_activate |
( |
| ) |
|
This function checks for whether the target is within the panic distance.
When this is true, it calls the do_evade function and sets the evade direction. This function is not to be used by the user.
Definition at line 67 of file evade.cxx.
◆ _ai_char
◆ _evade_activate_done
| bool Evade::_evade_activate_done |
◆ _evade_direction
| LVecBase3 Evade::_evade_direction |
◆ _evade_distance
| double Evade::_evade_distance |
◆ _evade_done
◆ _evade_relax_distance
| double Evade::_evade_relax_distance |
◆ _evade_target
◆ _evade_weight
| float Evade::_evade_weight |
The documentation for this class was generated from the following files: