Flee Class Reference
#include <flee.h>
List of all members.
Detailed Description
Definition at line 23 of file flee.h.
Constructor & Destructor Documentation
Flee::Flee |
( |
AICharacter * |
ai_ch, |
|
|
NodePath |
target_object, |
|
|
double |
panic_distance = 10.0 , |
|
|
double |
relax_distance = 10.0 , |
|
|
float |
flee_wt = 1.0 | |
|
) |
| | |
Filename : flee.cxx Created by : Deepak, John, Navin Date : 24 Oct 09
PANDA3D SOFTWARE Copyright(c) Carnegie Mellon University. All rights reserved.
All use of this software is subjest to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE"
Definition at line 17 of file flee.cxx.
Flee::Flee |
( |
AICharacter * |
ai_ch, |
|
|
LVecBase3f |
pos, |
|
|
double |
panic_distance = 10.0 , |
|
|
double |
relax_distance = 10.0 , |
|
|
float |
flee_wt = 1.0 | |
|
) |
| | |
Member Function Documentation
LVecBase3f Flee::do_flee |
( |
|
) |
|
Function : do_flee Description : This function performs the flee and returns a flee force which is used in the calculate_prioritized function. In case the AICharacter is past the (panic + relax) distance, it resets to flee_activate. This function is not to be used by the user.
Definition at line 59 of file flee.cxx.
void Flee::flee_activate |
( |
|
) |
|
Function : flee_activate Description : This function checks for whether the target is within the panic distance. When this is true, it calls the do_flee function and sets the flee direction. This function is not to be used by the user.
Definition at line 91 of file flee.cxx.
Member Data Documentation
The documentation for this class was generated from the following files:
- U:/jkolench/Desktop/PandAI_v0.5_source/flee.h
- U:/jkolench/Desktop/PandAI_v0.5_source/flee.cxx