Havok - Error when removing an Entity from World when Visual Debugger is on

Havok - Error when removing an Entity from World when Visual Debugger is on

When I attempt to delete an entity from my world while the visual debugger is turned on my application aborts. If the visual debugger is turned off then everything works fine. Is there anything I need to do so that the visual debuggger dosn't crash my program?

When I debug it this is always the last line of code to run before the crash happens.

HavokPhysics::getInstance()->m_pHavok_world->removeEntity(tempRigidBody);

P.S: This is my first time posting, so I apolgoies if I break any of the communites rules.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Issue Solved

It turns out I have to mark for write my world before I delete something from it

HavokPhysics::getInstance()->m_pHavok_world->markForWrite(); HavokPhysics::getInstance()->m_pHavok_world->removeEntity(tempRigidBody); HavokPhysics::getInstance()->m_pHavok_world->unmarkForWrite();

Issue Solved

It turns out I have to mark for write my world before I delete something from it

HavokPhysics::getInstance()->m_pHavok_world->markForWrite(); HavokPhysics::getInstance()->m_pHavok_world->removeEntity(tempRigidBody); HavokPhysics::getInstance()->m_pHavok_world->unmarkForWrite();

Login to leave a comment.