Panda3D
Public Member Functions | Public Attributes | List of all members
Wander Class Reference

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. More...
 

Public Attributes

AICharacter_ai_char
 
double _area_of_effect
 
int _flag
 
LVecBase3 _init_pos
 
double _wander_radius
 
LVecBase3 _wander_target
 
float _wander_weight
 

Detailed Description

Definition at line 21 of file wander.h.

Member Function Documentation

◆ do_wander()

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(), and random_clamped().

Referenced by AIBehaviors::calculate_prioritized().


The documentation for this class was generated from the following files: