Panda3D

Loading...
Searching...
No Matches
seek.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 seek.h
10 * @author Deepak, John, Navin
11 * @date 2009-10-24
12 */
13
14#ifndef _SEEK_H
15#define _SEEK_H
16
17#include "aiGlobals.h"
18#include "aiCharacter.h"
19
20 class AICharacter;
21
22 class EXPCL_PANDAAI Seek {
23
24 public:
25 AICharacter *_ai_char;
26
27 LVecBase3 _seek_position;
28 float _seek_weight;
29 LVecBase3 _seek_direction;
30 bool _seek_done;
31 LVecBase3 _seek_accum_force;
32
33 Seek(AICharacter *ai_ch, NodePath target_object, float seek_wt = 1.0);
34 Seek(AICharacter *ai_ch, LVecBase3 pos, float seek_wt = 1.0);
35 ~Seek();
36 LVecBase3 do_seek();
37};
38
39#endif
aiCharacter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
aiGlobals.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
AICharacter
Definition aiCharacter.h:29
NodePath
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition nodePath.h:159
Seek::do_seek
LVecBase3 do_seek()
This function performs the seek and returns a seek force which is used in the calculate_prioritized f...
Definition seek.cxx:48