How to delete btRigidBody properly? I use following code, that sometimes creates exception:
for (int c = 0; c < item->getNumConstraintRefs(); c++)
{
item->removeConstraintRef(item->getConstraintRef(c));
}
delete item;
deleting btRigidBody
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA