14 #ifndef __BULLET_CONTACT_CALLBACKS_H__ 15 #define __BULLET_CONTACT_CALLBACKS_H__ 38 contact_added_callback(btManifoldPoint &cp,
39 #
if BT_BULLET_VERSION >= 281
40 const btCollisionObjectWrapper *wrap0,
42 const btCollisionObject *obj0,
46 #
if BT_BULLET_VERSION >= 281
47 const btCollisionObjectWrapper *wrap1,
49 const btCollisionObject *obj1,
54 if (cp.m_userPersistentData ==
nullptr) {
56 #if BT_BULLET_VERSION >= 281 64 bullet_cat.debug() <<
"contact added: " << cp.m_userPersistentData << std::endl;
71 cp.m_userPersistentData = (
void *)data;
74 if (bullet_enable_contact_events) {
76 Event *
event =
new Event(
"bullet-contact-added");
84 if (bullet_contact_added_callback) {
89 bullet_contact_added_callback->do_callback(&cbdata);
100 contact_processed_callback(btManifoldPoint &cp,
125 contact_destroyed_callback(
void *userPersistentData) {
127 bullet_cat.debug() <<
"contact removed: " << userPersistentData << std::endl;
132 if (bullet_enable_contact_events) {
134 Event *
event =
new Event(
"bullet-contact-destroyed");
147 #endif // __BULLET_CONTACT_CALLBACKS_H__ PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
An optional parameter associated with an event.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static EventQueue * get_global_event_queue()
Returns a pointer to the one global EventQueue object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.