mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
bullet: add force_update_all_aabbs property to BulletWorld
This commit is contained in:
parent
b10ee32752
commit
5d2110c644
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user