how to select model
-
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact:
you could check wich node is in front of your camera.
you could number all of your nodes and then check if your camera "front view line" iss collideing with your node.
a sample of one of my projects
hope i could help ...
but i don't know how to solve this with mouseclicks maybe there are some getSceneNodeFromMouse()
you could number all of your nodes and then check if your camera "front view line" iss collideing with your node.
Code: Select all
public boolean onMouseEvent(BH_MouseEvent event)
{ // fragetussi anklicken
if (event.Event == 0 && currentScene == 3 && smgr.getSceneCollisionManager().getSceneNodeFromCameraBB(camera).getID() == 666 )
{
FAmgr.saveAnswer(BNr);
FAmgr.DeActivateAll();
if(FAmgr.isNextFr(FbNr, FNr))
{
FNr++;
return false;
}
else
{
currentScene = 4;;//currentScene = 1;
credits();
return false;
}
}
hope i could help ...
but i don't know how to solve this with mouseclicks maybe there are some getSceneNodeFromMouse()
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
sys: 2500+Barton 512MB 6600GT WinXP