and i think it has something todo with this:Unhandled exception at 0x6f6c6f43 in IntraFusion.exe: 0xC0000005: Access violation reading location 0x6f6c6f43.
http://blogs.msdn.com/chappell/archive/ ... 51856.aspx
but i cant really understand it.
okay. i create a camera in my player class and add a gun mesh as a child to it with this:
Code: Select all
IAnimatedMesh* gun_mesh = device->getSceneManager()->getMesh("media/models/Gun.obj");
gun_node = device->getSceneManager()->addAnimatedMeshSceneNode(gun_mesh, camera, -1, core::vector3df(1,-1,2),
core::vector3df(0,266,0));
if (gun_node)
{
gun_node->setMaterialFlag(EMF_LIGHTING, false);
gun_node->setMaterialTexture(0, device->getVideoDriver()->getTexture("Media/Textures/Gun.bmp"));
}Code: Select all
player1->getCamera()->setPosition(core::vector3df(-30,10,4));but i get the error. Does anyone understand this?
if i need to supply more lines of my code just ask.