00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXTRIGGERREPORT_H
00016 #define PHYSXTRIGGERREPORT_H
00017
00018 #include "pandabase.h"
00019 #include "pStatCollector.h"
00020
00021 #include "physx_includes.h"
00022
00023
00024
00025
00026
00027
00028 class EXPCL_PANDAPHYSX PhysxTriggerReport : public NxUserTriggerReport {
00029
00030 public:
00031 INLINE PhysxTriggerReport();
00032 INLINE ~PhysxTriggerReport();
00033
00034 void enable();
00035 void disable();
00036 bool is_enabled() const;
00037
00038 void onTrigger(NxShape &triggerShape, NxShape &otherShape, NxTriggerFlag status);
00039
00040 private:
00041 bool _enabled;
00042 static PStatCollector _pcollector;
00043 };
00044
00045 #include "physxTriggerReport.I"
00046
00047 #endif // PHYSXTRIGGERREPORT_H