Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Apr 23, 2012 12:49 pm 
Offline

Joined: Mon Apr 02, 2012 10:22 am
Posts: 6
Hi,

I have this error when I try to delete a btGhostObject used for a btKinematicCharacterController:
Code:
bullet-2.79/src/BulletCollision/CollisionDispatch/btGhostObject.cpp:29: virtual btGhostObject::~btGhostObject(): Assertion `!m_overlappingObjects.size()' failed.

Though I remove it from the world with removeCollisionObject before the delete.

I don't understand where is the problem.

Thanks for your help.


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 7:15 pm 
Offline

Joined: Mon Apr 02, 2012 10:22 am
Posts: 6
Nobody has the same problem?


Top
 Profile  
 
PostPosted: Thu Apr 26, 2012 6:15 pm 
Offline

Joined: Sun Jan 29, 2012 10:01 pm
Posts: 49
You must remove the object from the world before deleting it.

Code:
btGhostObject::~btGhostObject()
{
   ///btGhostObject should have been removed from the world, so no overlapping objects
   btAssert(!m_overlappingObjects.size());
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group