Panda3D
|
Public Member Functions | |
Wander (AICharacter *ai_ch, double wander_radius, int flag, double aoe, float wander_weight) | |
LVecBase3 | do_wander () |
This function performs the wander and returns the wander force which is used in the calculate_prioritized function. | |
Public Attributes | |
AICharacter * | _ai_char |
double | _area_of_effect |
int | _flag |
LVecBase3 | _init_pos |
double | _wander_radius |
LVecBase3 | _wander_target |
float | _wander_weight |
Wander::Wander | ( | AICharacter * | ai_ch, |
double | wander_radius, | ||
int | flag, | ||
double | aoe, | ||
float | wander_weight ) |
Definition at line 31 of file wander.cxx.
Wander::~Wander | ( | ) |
Definition at line 68 of file wander.cxx.
LVecBase3 Wander::do_wander | ( | ) |
This function performs the wander and returns the wander force which is used in the calculate_prioritized function.
This function is not to be used by the user.
Definition at line 76 of file wander.cxx.
References NodePath::get_pos(), NodePath::get_relative_vector(), and random_clamped().
Referenced by AIBehaviors::calculate_prioritized().
AICharacter* Wander::_ai_char |