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

Public Member Functions

 Pursue (AICharacter *ai_ch, NodePath target_object, float pursue_wt)
 
LVecBase3 do_pursue ()
 This function performs the pursue and returns a pursue force which is used in the calculate_prioritized function. More...
 

Public Attributes

AICharacter_ai_char
 
LVecBase3 _pursue_direction
 
bool _pursue_done
 
NodePath _pursue_target
 
float _pursue_weight
 

Detailed Description

Definition at line 22 of file pursue.h.

Member Function Documentation

◆ do_pursue()

LVecBase3 Pursue::do_pursue ( )

This function performs the pursue and returns a pursue force which is used in the calculate_prioritized function.

In case the target has been reached it resets the forces to 0 so that the character stops. This function is not to be used by the user.

Definition at line 37 of file pursue.cxx.

References NodePath::get_pos().

Referenced by AIBehaviors::calculate_prioritized().


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