Sofox, on 08 January 2013 - 05:17 PM, said:
Okay, added some basic code for managing the collision mesh for the world.
Relick: I upgraded my graphics card, and I don't know what it did but I can barely use the mouse camera controls. Any movement of the mouse makes the camera jump erratically, and it takes me a few seconds just to get the camera looking level at the scenery and mange it from there. Please fix this, or if you can't, disable it by default.
At a guess, it is probably the combination of your sensitive mouse, your boost in FPS from the new card, and the fact I haven't added any deltaTime regulation to the camera rotation.
I'll test it out and push something tonight when I get home, but this is all you should need to do (on line 218 of main.cpp):
world.camera.rot.x += input.mouseRelY * 0.2;
world.camera.rot.x += input.mouseRelY * 0.2 * deltaTime;
and then repeat that for line 226 if you want the other mode to work properly too.