15 #include "physxContactReport.h" 16 #include "physxContactPair.h" 17 #include "physxManager.h" 20 #include "eventQueue.h" 21 #include "eventParameter.h" 23 PStatCollector PhysxContactReport::_pcollector(
"App:PhysX:Contact Reporting");
30 void PhysxContactReport::
41 void PhysxContactReport::
52 bool PhysxContactReport::
63 void PhysxContactReport::
64 onContactNotify(NxContactPair &pair, NxU32 flags) {
73 if (flags & NX_NOTIFY_ON_START_TOUCH) {
74 event =
new Event(
"physx-contact-start");
76 else if (flags & NX_NOTIFY_ON_END_TOUCH) {
77 event =
new Event(
"physx-contact-stop");
79 else if (flags & NX_NOTIFY_ON_TOUCH) {
80 event =
new Event(
"physx-contact-touch");
82 else if (flags & NX_NOTIFY_ON_START_TOUCH_FORCE_THRESHOLD) {
83 event =
new Event(
"physx-contact-start-force-threshold");
85 else if (flags & NX_NOTIFY_ON_END_TOUCH_FORCE_THRESHOLD) {
86 event =
new Event(
"physx-contact-stop-force-threshold");
88 else if (flags & NX_NOTIFY_ON_TOUCH_FORCE_THRESHOLD) {
89 event =
new Event(
"physx-contact-touch-force-threshold");
An optional parameter associated with an event.
static EventQueue * get_global_event_queue()
Returns a pointer to the one global EventQueue object.
A lightweight class that represents a single element that may be timed and/or counted via stats...
A named event, possibly with parameters.