Panda3D
|
00001 //////////////////////////////////////////////////////////////////////// 00002 // Filename : seek.h 00003 // Created by : Deepak, John, Navin 00004 // Date : 24 Oct 09 00005 //////////////////////////////////////////////////////////////////// 00006 // 00007 // PANDA 3D SOFTWARE 00008 // Copyright (c) Carnegie Mellon University. All rights reserved. 00009 // 00010 // All use of this software is subject to the terms of the revised BSD 00011 // license. You should have received a copy of this license along 00012 // with this source code in a file named "LICENSE." 00013 // 00014 //////////////////////////////////////////////////////////////////// 00015 00016 #ifndef _SEEK_H 00017 #define _SEEK_H 00018 00019 #include "aiGlobals.h" 00020 #include "aiCharacter.h" 00021 00022 class AICharacter; 00023 00024 class EXPCL_PANDAAI Seek { 00025 00026 public: 00027 AICharacter *_ai_char; 00028 00029 LVecBase3f _seek_position; 00030 float _seek_weight; 00031 LVecBase3f _seek_direction; 00032 bool _seek_done; 00033 LVecBase3f _seek_accum_force; 00034 00035 Seek(AICharacter *ai_ch, NodePath target_object, float seek_wt = 1.0); 00036 Seek(AICharacter *ai_ch, LVecBase3f pos, float seek_wt = 1.0); 00037 ~Seek(); 00038 LVecBase3f do_seek(); 00039 }; 00040 00041 #endif