historical/toontown-classic.git/panda/include/obstacleAvoidance.h

38 lines
922 B
C
Raw Normal View History

2024-01-16 11:20:27 -06:00
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject 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."
*
* @file obstacleAvoidance.h
* @author Deepak, John, Navin
* @date 2009-11-10
*/
#ifndef OBSTACLE_AVOIDANCE_H
#define OBSTACLE_AVOIDANCE_H
#include "aiCharacter.h"
#include "boundingSphere.h"
class AICharacter;
class EXPCL_PANDAAI ObstacleAvoidance {
public :
AICharacter *_ai_char;
float _obstacle_avoidance_weight;
NodePath _nearest_obstacle;
bool _obstacle_avoidance_done;
float _feeler;
ObstacleAvoidance(AICharacter *ai_char, float feeler_length);
LVecBase3 do_obstacle_avoidance();
~ObstacleAvoidance();
void obstacle_avoidance_activate();
bool obstacle_detection();
};
#endif