Panda3D
Public Member Functions | Public Attributes
Wander Class Reference

List of all members.

Public Member Functions

 Wander (AICharacter *ai_ch, double wander_radius, int flag, double aoe, float wander_weight)
LVecBase3f 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
LVecBase3f _init_pos
double _wander_radius
LVecBase3f _wander_target
float _wander_weight

Detailed Description

Definition at line 23 of file wander.h.


Member Function Documentation

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 94 of file wander.cxx.

References LVector3f::forward(), NodePath::get_pos(), NodePath::get_relative_vector(), and LVecBase3f::normalize().

Referenced by AIBehaviors::calculate_prioritized().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations