Bonjour,
mon problème est que lorsque quand le programme arrive sur smgr->drawAll() mes coordonnées change toutes seul
par exemple si mes coordonnées sont 100,100,100 elle deviennent 21.1662, 15.9882, 21.9132
voici mon bout de code :
MyGraphe->LoadWorld();
MyEvent = new NJeux::Event(MyGui->getFen_Menu(), m_device, m_smgr, MyGraphe->getCameraFPS(), MyGraphe->getCamera());
MyPhysique->CreateWorld(MyGraphe->getCameraFPS(), MyGraphe->getNMap(), MyGraphe->getMap());
m_device->setEventReceiver(MyEvent);
if(m_CamPos.X || m_CamPos.Y || m_CamPos.Z)
{
MyGraphe->getCameraFPS()->setPosition(irr::core::vector3df(m_CamPos.X, m_CamPos.Y, m_CamPos.Z));
MyGraphe->getCamera()->setPosition(irr::core::vector3df(m_CamPos.X, m_CamPos.Y, m_CamPos.Z));
std::cout << m_CamPos.X << " " << m_CamPos.Y << " " << m_CamPos.Z << std::endl;
}
std::cout << MyGraphe->getCameraFPS()->getPosition().X << " " << MyGraphe->getCameraFPS()->getPosition().Y << " " << MyGraphe->getCameraFPS()->getPosition().Z << std::endl;
int i = 0;
while(m_device->run())
{
m_driver->beginScene(true, true, irr::video::SColor(0,200,200,200));
MyGraphe->UpDate();
MyGui->Update(MyGraphe->getCameraFPS());
m_smgr->drawAll();
if(i != 1)
{
std::cout << MyGraphe->getCameraFPS()->getPosition().X << " " << MyGraphe->getCameraFPS()->getPosition().Y << " " << MyGraphe->getCameraFPS()->getPosition().Z << std::endl;
i = 1;
}
m_gui->drawAll();
m_driver->endScene();
}
j'ai regardé dans la fonction drawAll() et j'y voit rien qui puisse changer mes coordonnées
Si quelqu'un sait d'où sa peut venir je dit pas non ^^