ObstacleAvoidance Class Reference

#include <obstacleAvoidance.h>

Collaboration diagram for ObstacleAvoidance:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 23 of file obstacleAvoidance.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 25 of file obstacleAvoidance.h.

Definition at line 29 of file obstacleAvoidance.h.

Definition at line 27 of file obstacleAvoidance.h.

Definition at line 28 of file obstacleAvoidance.h.

Definition at line 26 of file obstacleAvoidance.h.


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

Generated on Tue Dec 8 01:13:20 2009 for Pandai by  doxygen 1.6.1