20 PStatCollector PhysxTriggerReport::_pcollector(
"App:PhysX:Trigger Reporting");
25 void PhysxTriggerReport::
34 void PhysxTriggerReport::
43 bool PhysxTriggerReport::
52 void PhysxTriggerReport::
53 onTrigger(NxShape &triggerShape, NxShape &otherShape, NxTriggerFlag status) {
62 if (status & NX_TRIGGER_ON_ENTER) {
63 event =
new Event(
"physx-trigger-enter");
65 else if (status & NX_TRIGGER_ON_LEAVE) {
66 event =
new Event(
"physx-trigger-leave");
68 else if (status & NX_TRIGGER_ON_STAY) {
69 event =
new Event(
"physx-trigger-stay");
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An optional parameter associated with an event.
Abstract base class for shapes.
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.
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.