#include <obstacleAvoidance.h>
Public Member Functions | |
ObstacleAvoidance (AICharacter *ai_char, float feeler_length) | |
LVecBase3f | do_obstacle_avoidance () |
~ObstacleAvoidance () | |
void | obstacle_avoidance_activate () |
bool | obstacle_detection () |
Public Attributes | |
AICharacter * | _ai_char |
float | _obstacle_avoidance_weight |
NodePath | _nearest_obstacle |
bool | _obstacle_avoidance_done |
float | _feeler |
Definition at line 23 of file obstacleAvoidance.h.
ObstacleAvoidance::ObstacleAvoidance | ( | AICharacter * | ai_char, | |
float | feeler_length | |||
) |
Filename : obstacleAvoidance.cxx Created by : Deepak, John, Navin Date : 10 Nov 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 obstacleAvoidance.cxx.
ObstacleAvoidance::~ObstacleAvoidance | ( | ) |
Definition at line 22 of file obstacleAvoidance.cxx.
LVecBase3f ObstacleAvoidance::do_obstacle_avoidance | ( | ) |
Function : do_obstacle_avoidance Description : This function returns the force necessary by the AICharacter to avoid the nearest obstacle detected by obstacle_detection function NOTE : This assumes the obstacles are spherical
Definition at line 92 of file obstacleAvoidance.cxx.
void ObstacleAvoidance::obstacle_avoidance_activate | ( | ) |
Function : obstacle_avoidance_activate Description : This function activates obstacle_avoidance if a obstacle is detected
Definition at line 75 of file obstacleAvoidance.cxx.
bool ObstacleAvoidance::obstacle_detection | ( | ) |
Function : obstacle_detection Description : This function checks if an obstacle is near to the AICharacter and if an obstacle is detected returns true
Definition at line 33 of file obstacleAvoidance.cxx.
Definition at line 25 of file obstacleAvoidance.h.
Definition at line 29 of file obstacleAvoidance.h.
NodePath ObstacleAvoidance::_nearest_obstacle |
Definition at line 27 of file obstacleAvoidance.h.
Definition at line 28 of file obstacleAvoidance.h.
Definition at line 26 of file obstacleAvoidance.h.