In my latest project with three.js, I have created a simple scene and my aim is to implement a point of view camera based on FirstPersonControls.js.
I made some adjustments to the code in order to customize it according to my requirements like moving the view upon mouse click. Although I am almost finished with the implementation, there is one persistent issue: when I initiate movement for the first time, the camera does not start from the object's position that I am currently viewing at scene load.
This problem only occurs when I explicitly set the camera's position. Otherwise, it works relatively fine, you can see the progress on this link: http://jsfiddle.net/42qeojs0/
If you uncomment these 3 lines (after line 60):
camera.position.x = 10;
camera.position.y = 10;
camera.position.z = 250;
Afterward, attempt to navigate around the object by dragging your mouse. You will notice that the starting position of your drag differs from where you initially looked at.
Thank you for any assistance you can provide!