nevarim
03-03-2011 12:29:12
is with mygui that i can use pointer on terrain when i click? if yes how?
(tell me if you don't understand and i try to explain better)
Neva
(tell me if you don't understand and i try to explain better)
Neva
nevarim
03-03-2011 12:29:12
Altren
03-03-2011 17:47:25
MyGUI::IntPoint mousePosition = MyGUI::InputManager::getInstance().getMousePosition();
MyGUI::IntSize size = MyGUI::RenderManager::getInstance().getViewSize();
Ogre::Ray ray = mCamera->getCameraToViewportRay(mousePosition .left / float(size.width), mousePosition .top / float(size.height));
// ... check intersection
nevarim
03-03-2011 19:06:24
Altren
03-03-2011 22:01:11
nevarim
04-03-2011 09:30:36
Altren
04-03-2011 10:16:26
nevarim
04-03-2011 10:21:03