diff --git a/panda/src/bullet/bulletWorld.cxx b/panda/src/bullet/bulletWorld.cxx index f3d48e3c74..18c23c8896 100644 --- a/panda/src/bullet/bulletWorld.cxx +++ b/panda/src/bullet/bulletWorld.cxx @@ -1104,6 +1104,24 @@ get_group_collision_flag(unsigned int group1, unsigned int group2) const { return _filter_cb2._collide[group1].get_bit(group2); } +/** + * + */ +void BulletWorld:: +set_force_update_all_aabbs(bool force) { + LightMutexHolder holder(get_global_lock()); + _world->setForceUpdateAllAabbs(force); +} + +/** + * + */ +bool BulletWorld:: +get_force_update_all_aabbs() const { + LightMutexHolder holder(get_global_lock()); + return _world->getForceUpdateAllAabbs(); +} + /** * */ diff --git a/panda/src/bullet/bulletWorld.h b/panda/src/bullet/bulletWorld.h index 021b6ee268..36f3723535 100644 --- a/panda/src/bullet/bulletWorld.h +++ b/panda/src/bullet/bulletWorld.h @@ -134,6 +134,9 @@ PUBLISHED: void set_group_collision_flag(unsigned int group1, unsigned int group2, bool enable); bool get_group_collision_flag(unsigned int group1, unsigned int group2) const; + void set_force_update_all_aabbs(bool force); + bool get_force_update_all_aabbs() const; + // Callbacks void set_contact_added_callback(CallbackObject *obj); void clear_contact_added_callback(); @@ -166,6 +169,8 @@ PUBLISHED: MAKE_SEQ_PROPERTY(vehicles, get_num_vehicles, get_vehicle); MAKE_SEQ_PROPERTY(constraints, get_num_constraints, get_constraint); MAKE_SEQ_PROPERTY(manifolds, get_num_manifolds, get_manifold); + MAKE_PROPERTY(force_update_all_aabbs, get_force_update_all_aabbs, + set_force_update_all_aabbs); PUBLISHED: // Deprecated methods, will be removed soon void attach_ghost(BulletGhostNode *node);