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