summaryrefslogtreecommitdiffstats
path: root/modules/bullet/space_bullet.h
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2020-06-21 18:29:45 +0200
committerAndrea Catania <info@andreacatania.com>2020-06-24 09:09:50 +0200
commita2b5e7971ae7ebfe1a4c9575145936cd40dee120 (patch)
treefb49ec12cf6fb27a89e1a2e18935f7cd031c3e4b /modules/bullet/space_bullet.h
parentd360e6fb46fe425b7cc42a04adc62d1b564a0806 (diff)
downloadredot-engine-a2b5e7971ae7ebfe1a4c9575145936cd40dee120.tar.gz
Added BulletPhysics APIs to return internal objects and fixed a typo.
Diffstat (limited to 'modules/bullet/space_bullet.h')
-rw-r--r--modules/bullet/space_bullet.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/bullet/space_bullet.h b/modules/bullet/space_bullet.h
index 5ff421ef52..0b3e48c618 100644
--- a/modules/bullet/space_bullet.h
+++ b/modules/bullet/space_bullet.h
@@ -124,9 +124,12 @@ public:
real_t get_delta_time() { return delta_time; }
void step(real_t p_delta_time);
- _FORCE_INLINE_ btBroadphaseInterface *get_broadphase() { return broadphase; }
- _FORCE_INLINE_ btCollisionDispatcher *get_dispatcher() { return dispatcher; }
- _FORCE_INLINE_ btSoftBodyWorldInfo *get_soft_body_world_info() { return soft_body_world_info; }
+ _FORCE_INLINE_ btBroadphaseInterface *get_broadphase() const { return broadphase; }
+ _FORCE_INLINE_ btDefaultCollisionConfiguration *get_collision_configuration() const { return collisionConfiguration; }
+ _FORCE_INLINE_ btCollisionDispatcher *get_dispatcher() const { return dispatcher; }
+ _FORCE_INLINE_ btConstraintSolver *get_solver() const { return solver; }
+ _FORCE_INLINE_ btDiscreteDynamicsWorld *get_dynamic_world() const { return dynamicsWorld; }
+ _FORCE_INLINE_ btSoftBodyWorldInfo *get_soft_body_world_info() const { return soft_body_world_info; }
_FORCE_INLINE_ bool is_using_soft_world() { return soft_body_world_info; }
/// Used to set some parameters to Bullet world