Here i`m destroying my vehicle:
Code: Select all
delete btChassis->getMotionState();
delete engine;
delete mVehicle;
delete btChassis;
delete mVehicleRayCaster;
delete mWheelShape;
Code: Select all
if (getMotionState())
getMotionState()->getWorldTransform(m_worldTransform);I`m using BtOgre to connect Bullet & Ogre with own MotionState but i think it can`t be the reason of the exception.Unhandled exception at 0x01277f28 in Game.exe: 0xC0000005: Access violation reading location 0xfeeefeee.