Explorar el Código

Exposed additional members of btManifoldPoint.

enn0x hace 14 años
padre
commit
e15f8fd87e

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

@@ -101,3 +101,47 @@ get_local_point_b() const {
   return btVector3_to_LPoint3(_pt.m_localPointB);
   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_a() const;
   LPoint3 get_local_point_b() 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:
 public:
   BulletManifoldPoint(btManifoldPoint &pt);
   BulletManifoldPoint(btManifoldPoint &pt);