14#ifndef OBSTACLE_AVOIDANCE_H
15#define OBSTACLE_AVOIDANCE_H
22class EXPCL_PANDAAI ObstacleAvoidance {
25 float _obstacle_avoidance_weight;
27 bool _obstacle_avoidance_done;
30 ObstacleAvoidance(
AICharacter *ai_char,
float feeler_length);
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...
void obstacle_avoidance_activate()
This function activates obstacle_avoidance if a obstacle is detected.
bool obstacle_detection()
This function checks if an obstacle is near to the AICharacter and if an obstacle is detected returns...
LVecBase3 do_obstacle_avoidance()
This function returns the force necessary by the AICharacter to avoid the nearest obstacle detected b...