I have a dynamic rigid body which i add and remove from my world frequently. Every time a button is pressed.
I add the object to the world using this call...
Code: Select all
m_dynamicsWorld->addRigidBody( pBody->GetRigidBody(), group, mask );
Code: Select all
m_dynamicsWorld->removeRigidBody( pBody->GetRigidBody() );
Code: Select all
int btPersistentManifold::addManifoldPoint(const btManifoldPoint& newPoint, bool isPredictive)
{
if (!isPredictive)
{
btAssert(validContactDistance(newPoint));
}
From what i can tell Bullet physics is interpolating from the coordinates my object was removed from the world at, to the new coordinates the object is being added to the world at. And in doing so is colliding with a kinematic body. Causing the assert above.
The behaviour i wanted was that my object would just appear at the new coordinates. I already know that these new coordinates don't have another object there.