Panda3D
Loading...
Searching...
No Matches
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.
 

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.

Constructor & Destructor Documentation

◆ Pursue()

Pursue::Pursue ( AICharacter * ai_ch,
NodePath target_object,
float pursue_wt )

Definition at line 16 of file pursue.cxx.

◆ ~Pursue()

Pursue::~Pursue ( )

Definition at line 26 of file pursue.cxx.

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

References NodePath::get_pos().

Referenced by AIBehaviors::calculate_prioritized().

Member Data Documentation

◆ _ai_char

AICharacter* Pursue::_ai_char

Definition at line 25 of file pursue.h.

◆ _pursue_direction

LVecBase3 Pursue::_pursue_direction

Definition at line 29 of file pursue.h.

◆ _pursue_done

bool Pursue::_pursue_done

Definition at line 30 of file pursue.h.

◆ _pursue_target

NodePath Pursue::_pursue_target

Definition at line 27 of file pursue.h.

◆ _pursue_weight

float Pursue::_pursue_weight

Definition at line 28 of file pursue.h.


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