From 47a66f0e542bda009ea928ac0580d409f8e474a4 Mon Sep 17 00:00:00 2001 From: enn0x Date: Tue, 3 Dec 2013 21:28:57 +0000 Subject: [PATCH] Added method for getting Bullet version. --- panda/src/bullet/bullet_utils.cxx | 9 +++++++++ panda/src/bullet/bullet_utils.h | 1 + 2 files changed, 10 insertions(+) diff --git a/panda/src/bullet/bullet_utils.cxx b/panda/src/bullet/bullet_utils.cxx index 34e32eee90..521ea4a4b8 100644 --- a/panda/src/bullet/bullet_utils.cxx +++ b/panda/src/bullet/bullet_utils.cxx @@ -219,3 +219,12 @@ void get_node_transform(btTransform &trans, PandaNode *node) { trans.setOrigin(btv); } +//////////////////////////////////////////////////////////////////// +// Function: get_bullet_version +// Description: Returns the version of the linked Bullet library. +//////////////////////////////////////////////////////////////////// +int get_bullet_version() { + + return BT_BULLET_VERSION; +} + diff --git a/panda/src/bullet/bullet_utils.h b/panda/src/bullet/bullet_utils.h index 710d597a8e..fc9fa3542f 100644 --- a/panda/src/bullet/bullet_utils.h +++ b/panda/src/bullet/bullet_utils.h @@ -55,6 +55,7 @@ enum BulletUpAxis { }; EXPCL_PANDABULLET BulletUpAxis get_default_up_axis(); +EXPCL_PANDABULLET int get_bullet_version(); END_PUBLISH