Panda3D
obstacleAvoidance.h
1 #ifndef OBSTACLE_AVOIDANCE_H
2 #define OBSTACLE_AVOIDANCE_H
3 
4 ////////////////////////////////////////////////////////////////////////
5 // Filename : obstacleAvoidance.h
6 // Created by : Deepak, John, Navin
7 // Date : 10 Nov 2009
8 ////////////////////////////////////////////////////////////////////
9 //
10 // PANDA 3D SOFTWARE
11 // Copyright (c) Carnegie Mellon University. All rights reserved.
12 //
13 // All use of this software is subject to the terms of the revised BSD
14 // license. You should have received a copy of this license along
15 // with this source code in a file named "LICENSE."
16 //
17 ////////////////////////////////////////////////////////////////////
18 
19 #include "aiCharacter.h"
20 #include "boundingSphere.h"
21 
22 class AICharacter;
23 
24 class EXPCL_PANDAAI ObstacleAvoidance {
25  public :
26  AICharacter *_ai_char;
27  float _obstacle_avoidance_weight;
28  NodePath _nearest_obstacle;
29  bool _obstacle_avoidance_done;
30  float _feeler;
31 
32  ObstacleAvoidance(AICharacter *ai_char, float feeler_length);
33  LVecBase3 do_obstacle_avoidance();
35  void obstacle_avoidance_activate();
36  bool obstacle_detection();
37 };
38 
39 #endif
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165