Add signal to inform joint that body has exited tree
This commit is contained in:
parent
41e9028868
commit
026aa4381d
5 changed files with 96 additions and 5 deletions
|
|
@ -482,7 +482,7 @@ void SpaceBullet::remove_rigid_body(RigidBodyBullet *p_body) {
|
|||
|
||||
int constraints = btBody->getNumConstraintRefs();
|
||||
if (constraints > 0) {
|
||||
WARN_PRINT("A body connected to joints was removed. Ensure bodies are disconnected from joints before removing them.");
|
||||
ERR_PRINT("A body connected to joints was removed.");
|
||||
for (int i = 0; i < constraints; i++) {
|
||||
dynamicsWorld->removeConstraint(btBody->getConstraintRef(i));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue