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