Panda3D
|
00001 // Filename: physxControllerReport.h 00002 // Created by: enn0x (24Sep09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXCONTROLLERREPORT_H 00016 #define PHYSXCONTROLLERREPORT_H 00017 00018 #include "pandabase.h" 00019 #include "pStatCollector.h" 00020 00021 #include "physx_includes.h" 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Class : PhysxControllerReport 00025 // Description : Implementation of the NxUserControllerHitReport 00026 // interface. 00027 //////////////////////////////////////////////////////////////////// 00028 class EXPCL_PANDAPHYSX PhysxControllerReport : public NxUserControllerHitReport { 00029 00030 public: 00031 INLINE PhysxControllerReport(); 00032 INLINE ~PhysxControllerReport(); 00033 00034 void enable(); 00035 void disable(); 00036 bool is_enabled() const; 00037 00038 virtual NxControllerAction onShapeHit(const NxControllerShapeHit& hit); 00039 virtual NxControllerAction onControllerHit(const NxControllersHit& hit); 00040 00041 private: 00042 bool _enabled; 00043 static PStatCollector _pcollector; 00044 }; 00045 00046 #include "physxControllerReport.I" 00047 00048 #endif // PHYSXCONTROLLERREPORT_H