Panda3D
|
00001 // Filename: physxContactReport.h 00002 // Created by: enn0x (19Sep09) 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 PHYSXCONTACTREPORT_H 00016 #define PHYSXCONTACTREPORT_H 00017 00018 #include "pandabase.h" 00019 #include "pStatCollector.h" 00020 #include "physx_includes.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : PhysxContactReport 00024 // Description : Implementation of the NxUserContactReport 00025 // interface. 00026 //////////////////////////////////////////////////////////////////// 00027 class EXPCL_PANDAPHYSX PhysxContactReport : public NxUserContactReport { 00028 00029 public: 00030 INLINE PhysxContactReport(); 00031 INLINE ~PhysxContactReport(); 00032 00033 void enable(); 00034 void disable(); 00035 bool is_enabled() const; 00036 00037 void onContactNotify(NxContactPair& pair, NxU32 flags); 00038 00039 private: 00040 bool _enabled; 00041 static PStatCollector _pcollector; 00042 }; 00043 00044 #include "physxContactReport.I" 00045 00046 #endif // PHYSXCONTACTREPORT_H