Panda3D
Public Member Functions | Public Attributes

Pursue Class Reference

List of all members.

Public Member Functions

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

Public Attributes

AICharacter_ai_char
LVecBase3f _pursue_direction
bool _pursue_done
NodePath _pursue_target
float _pursue_weight

Detailed Description

Definition at line 24 of file pursue.h.


Member Function Documentation

LVecBase3f 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 40 of file pursue.cxx.

References NodePath::get_pos(), and LVecBase3f::normalize().

Referenced by AIBehaviors::calculate_prioritized().


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