[SOLVED] Query masks

Dynad

13-10-2009 17:26:09

Hey there,

Ive a problem with clicking on a button, i use mouseclick for Character movement and when im clicking on a button the Character moves aswell...

I want when i click on a button the character stands still.

Is there a simple solution for this problem.

i use this for raycast:

const MyGUI::IntPoint& mousePos = MyGUI::InputManager::getInstance().getMousePosition();
Ray mouseRay = GlbVar.mCamera->getCameraToViewportRay(mousePos.left/float(arg.state.width), mousePos.top/float(arg.state.height));
bool ok = GlbVar.col->raycastFromPoint(mouseRay.getPoint(0),mouseRay.getDirection(),result, (ulong&)tmpE, distToColl, QF_LEVELGEOMETRY);

if(ok){
node = tmpE->getParentSceneNode();

GlbVar.wayPath = result;
}



Thnx,
~Dynad

my.name

13-10-2009 20:51:38

if (mGUI->injectMousePress(_absx, _absy, _id))
{
// nothing
}
else
{
// ray
}

Dynad

13-10-2009 23:13:19

thnx it works perfect now :D

my.name

14-10-2009 12:30:02

=)