Historique des modifications - Message

Message #4513

Sujet: Coordonnées qui changes toutes seul


Type Date Auteur Contenu
Création du message 28-08-2008 17:37:24 bestben
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 ^^

Retour

Options Liens officiels Caractéristiques Statistiques Communauté
Préférences cookies
Corrections
irrlicht
irrklang
irredit
irrxml
Propulsé par Django
xhtml 1.0
css 2.1
884 membres
1440 sujets
11337 messages
Dernier membre inscrit: Saidov17
167 invités en ligne
membre en ligne: -
RSS Feed