22 BulletPersistentManifold::
23 BulletPersistentManifold(btPersistentManifold *manifold) : _manifold(manifold) {
30 PN_stdfloat BulletPersistentManifold::
31 get_contact_breaking_threshold()
const {
34 return (PN_stdfloat)_manifold->getContactBreakingThreshold();
40 PN_stdfloat BulletPersistentManifold::
41 get_contact_processing_threshold()
const {
44 return (PN_stdfloat)_manifold->getContactProcessingThreshold();
50 void BulletPersistentManifold::
54 _manifold->clearManifold();
64 #if BT_BULLET_VERSION >= 281 65 const btCollisionObject *obj = _manifold->getBody0();
67 const btCollisionObject *obj = (btCollisionObject *)_manifold->getBody0();
70 return (obj) ? (
PandaNode *)obj->getUserPointer():
nullptr;
80 #if BT_BULLET_VERSION >= 281 81 const btCollisionObject *obj = _manifold->getBody1();
83 const btCollisionObject *obj = (btCollisionObject *)_manifold->getBody1();
86 return (obj) ? (
PandaNode *)obj->getUserPointer():
nullptr;
92 int BulletPersistentManifold::
93 get_num_manifold_points()
const {
96 return _manifold->getNumContacts();
103 get_manifold_point(
int idx)
const {
106 nassertr(idx < _manifold->getNumContacts(),
nullptr)
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to MutexHolder, but for a light mutex.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.