From e15f8fd87ee7e88bfa7b4373e4968e228bf9c469 Mon Sep 17 00:00:00 2001 From: enn0x Date: Mon, 5 Dec 2011 22:25:18 +0000 Subject: [PATCH] Exposed additional members of btManifoldPoint. --- panda/src/bullet/bulletManifoldPoint.cxx | 44 ++++++++++++++++++++++++ panda/src/bullet/bulletManifoldPoint.h | 5 +++ 2 files changed, 49 insertions(+) diff --git a/panda/src/bullet/bulletManifoldPoint.cxx b/panda/src/bullet/bulletManifoldPoint.cxx index 403b13b342..9567fabb1d 100644 --- a/panda/src/bullet/bulletManifoldPoint.cxx +++ b/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; +} + diff --git a/panda/src/bullet/bulletManifoldPoint.h b/panda/src/bullet/bulletManifoldPoint.h index d878cbf7c3..29a9466a7c 100644 --- a/panda/src/bullet/bulletManifoldPoint.h +++ b/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);