Browse Source

Exposed additional members of btManifoldPoint.

enn0x 14 years ago
parent
commit
e15f8fd87e
2 changed files with 49 additions and 0 deletions
  1. 44 0
      panda/src/bullet/bulletManifoldPoint.cxx
  2. 5 0
      panda/src/bullet/bulletManifoldPoint.h

+ 44 - 0
panda/src/bullet/bulletManifoldPoint.cxx

@@ -101,3 +101,47 @@ get_local_point_b() const {
   return btVector3_to_LPoint3(_pt.m_localPointB);
 }
 
+////////////////////////////////////////////////////////////////////
+//     Function: BulletManifoldPoint::get_part_id0
+//       Access: Published
+//  Description:
+////////////////////////////////////////////////////////////////////
+int BulletManifoldPoint::
+get_part_id0() const {
+
+  return _pt.m_partId0;
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: BulletManifoldPoint::get_part_id1
+//       Access: Published
+//  Description:
+////////////////////////////////////////////////////////////////////
+int BulletManifoldPoint::
+get_part_id1() const {
+
+  return _pt.m_partId1;
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: BulletManifoldPoint::get_index0
+//       Access: Published
+//  Description:
+////////////////////////////////////////////////////////////////////
+int BulletManifoldPoint::
+get_index0() const {
+
+  return _pt.m_index0;
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: BulletManifoldPoint::get_index1
+//       Access: Published
+//  Description:
+////////////////////////////////////////////////////////////////////
+int BulletManifoldPoint::
+get_index1() const {
+
+  return _pt.m_index1;
+}
+

+ 5 - 0
panda/src/bullet/bulletManifoldPoint.h

@@ -39,6 +39,11 @@ PUBLISHED:
   LPoint3 get_local_point_a() const;
   LPoint3 get_local_point_b() const;
 
+  int get_part_id0() const;
+  int get_part_id1() const;
+  int get_index0() const;
+  int get_index1() const;
+
 public:
   BulletManifoldPoint(btManifoldPoint &pt);