I created a basic scene using three.js. My goal is to make a pov camera based on FirstPersonControls.js
I modified its code to fit my needs (moving view on mouse click, etc.) I m almost done but a bug remains: when I move the camera on the first time, it doesn't start moving from the object's position I m looking at on the scene load.
This only happens when I set a camera's position. Otherwise, it almost works, as you can see on this link: http://jsfiddle.net/42qeojs0/
Just uncomment these 3 lines (after line 60)
camera.position.x = 10;
camera.position.y = 10;
camera.position.z = 250;
Then, try to move the view around the object by dragging your mouse. You'll see the start position of your drag isn't the same as the position where you first look at.
Thanks in advance