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 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

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();

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen