removeRigidBody is slow (?)

kate
Posts: 41
Joined: Thu Jan 08, 2009 11:20 am
Location: London, UK

removeRigidBody is slow (?)

Post by kate »

Hi,

I'm finding that the "removeRigidBody" calls I make are taking quite a long time and I wondered if there were a way to quickly remove all the rigid bodies in the scene before deleting the world? (I know that Havok has - or had - functions to batch add/remove rigid bodies; would it be possible to implement something similar for Bullet? I admit I don't know what the Havok functions did, and I haven't looked at the Bullet ones closely, so apologies if this is a silly question).

Thanks :)

Kate