I am currently in the process of creating a small 3D FPS Game using Three.js, but I am in need of assistance with the controls.
To better illustrate what I am aiming for, please watch this video to see the desired controls in action (only the controls, not the entire game world): https://www.youtube.com/watch?v=WDDJDTeTBc4
Despite my efforts, I have been unable to locate any open source examples or tutorials on how to implement these controls. Therefore, I am reaching out here for help. Could someone please provide guidance on what steps I need to take?
I have considered the following approach, but I am unsure if it is the most efficient (fast) method: - Locking the mouse pointer (how can I adjust the camera 'rotation'?), allowing mouse movement to control viewing direction - Implementing key controls (W, A, S, D for movement) - Placing a character (simple sphere geometry) behind the camera
Is this the correct approach? Similar to controls used in Minecraft, with a character positioned directly behind the camera. Any suggestions? I greatly appreciate any comments that can assist me in this endeavor.