HI
I am able to move in environment using mouse. I want to move in front and back , even if i am seeing at roof..etc.
Means Player should not leave the floor while seeing roof and walking ahead.
This is the code for normal movement. Can some one help me out with it.
if (mouse.buttonDown(0)) {
SimpleVector s=camera.getDirection();
theWorld.checkCameraCollisionEllipsoid(s, UP_MOVEMENT, 2, 2);
}
if (mouse.buttonDown(1)) {
SimpleVector s=camera.getDirection();
theWorld.checkCameraCollisionEllipsoid(s, UP_MOVEMENT, -2, 2);
}
With Regards
San14