bullet: add force_update_all_aabbs property to BulletWorld

This commit is contained in:
rdb 2018-03-08 12:19:22 +01:00
parent b10ee32752
commit 5d2110c644
2 changed files with 23 additions and 0 deletions

View File

@ -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();
}
/**
*
*/

View File

@ -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);