#include <arrival.h>
Public Member Functions | |
Arrival (AICharacter *ai_ch, NodePath target_object, double distance=10.0) | |
~Arrival () | |
LVecBase3f | do_arrival () |
void | arrival_activate () |
Public Attributes | |
AICharacter * | _ai_char |
NodePath | _arrival_target |
double | _arrival_distance |
LVecBase3f | _arrival_direction |
bool | _arrival_done |
Definition at line 23 of file arrival.h.
Arrival::Arrival | ( | AICharacter * | ai_ch, | |
NodePath | target_object, | |||
double | distance = 10.0 | |||
) |
Filename : arrival.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 arrival.cxx.
Arrival::~Arrival | ( | ) |
Definition at line 26 of file arrival.cxx.
void Arrival::arrival_activate | ( | ) |
Function : arrival_activate Description : This function checks for whether the target is within the arrival distance. When this is true, it calls the do_arrival function and sets the arrival direction. This function is not to be used by the user.
Definition at line 96 of file arrival.cxx.
LVecBase3f Arrival::do_arrival | ( | ) |
Function : do_arrival Description : This function performs the arrival and returns an arrival force which is used in the calculate_prioritized function. In case the steering force = 0, it resets to arrival_activate. The arrival behavior works only when seek or pursue is active. This function is not to be used by the user.
Definition at line 40 of file arrival.cxx.
LVecBase3f Arrival::_arrival_direction |
double Arrival::_arrival_distance |
NodePath Arrival::_arrival_target |