Hi Egon,
I'm analizing your fps's code and I'm not pretty sure to understand the meaning of the following:
boolean cameraChanged=false;
if (forward) {
camera.moveCamera(new SimpleVector(0,1,0), PLAYER_HEIGHT/2f);
cameraChanged=true;
tempVector=playerDirection.getZAxis();
theWorld.checkCameraCollisionEllipsoid(tempVector, ELLIPSOID_RADIUS, MOVE_SPEED, 4);
}
.
.
.
if (cameraChanged) {
camera.moveCamera(new SimpleVector(0, -1, 0), PLAYER_HEIGHT/2f);
}
I don't understand why I've to reset the camera position, and why, if I comment
camera.moveCamera(new SimpleVector(0, -1, 0), PLAYER_HEIGHT/2f);
and press the forward or backward button the camera goes in infinite under my floor....
The second question: as you know I'm using a configuration file that let me to load a certain number of feritos (wonded); I've noticed that when I load more than 4 of them in a particular camera position or rotation my world is completly black while the feritos are still visible; if I move or rotate the camera a bit the world come back.... Considering that under four feritos this problem doesn't happen, it could be a memory problem?
Bye and thanks