(resending... troubles at sourceforge?)
hi list
i'm trying to use the walk navigator without the simple scene manager.
initialisation:
(creating viewports and camBeacon etc.)
navigator.setViewport(viewport);
navigator.setCameraTransformation(camBeacon);
navigator.setMode(Navigator::WALK);
navigator.getWalkNavigator()->setGroundDistance(1.7);
navigator.setMotionFactor(1.0);
navigator.getWalkNavigator()->setMinWallDistance(0.1);
glut callback:
// react to mouse button presses
void mouse(int button, int state, int x, int y)
{
if (state) {
navigator.buttonRelease(button, x, y);
}
else {
navigator.buttonPress(button, x, y);
}
navigator.updateCameraTransformation();
glutPostRedisplay();
}
the walk navigator reacts to tumbling, but nothing happens when i try to
move forward/backward (left/right mouse btn). any idea, what's missing?
thanx & regards,
simon
|