22 PStatCollector PhysxContactReport::_pcollector(
"App:PhysX:Contact Reporting");
27 void PhysxContactReport::
36 void PhysxContactReport::
45 bool PhysxContactReport::
54 void PhysxContactReport::
55 onContactNotify(NxContactPair &pair, NxU32 flags) {
64 if (flags & NX_NOTIFY_ON_START_TOUCH) {
65 event =
new Event(
"physx-contact-start");
67 else if (flags & NX_NOTIFY_ON_END_TOUCH) {
68 event =
new Event(
"physx-contact-stop");
70 else if (flags & NX_NOTIFY_ON_TOUCH) {
71 event =
new Event(
"physx-contact-touch");
73 else if (flags & NX_NOTIFY_ON_START_TOUCH_FORCE_THRESHOLD) {
74 event =
new Event(
"physx-contact-start-force-threshold");
76 else if (flags & NX_NOTIFY_ON_END_TOUCH_FORCE_THRESHOLD) {
77 event =
new Event(
"physx-contact-stop-force-threshold");
79 else if (flags & NX_NOTIFY_ON_TOUCH_FORCE_THRESHOLD) {
80 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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that represents a single element that may be timed and/or counted via stats.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A named event, possibly with parameters.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.