Closed Glavin001 closed 11 years ago
Read this issue thread, especially this comment: https://github.com/mrdoob/three.js/issues/1274#issuecomment-3908546
Going to use camera.rotation
Improve fluidity of player movement and controls. http://stackoverflow.com/questions/5203407/javascript-multiple-keys-pressed-at-once
Using the camera.position you can place the player's camera at any position, and fairly easily. What is not easy is using camera.lookAt because you must specify a point that the player's camera is looking at -- which is difficult, as there really is no absolute point. However, this can be calculated by simply imaging the lookAt point on an imaginary sphere around the camera.position. For varying mouse-speeds you can imagine a sphere with a larger/smaller radius.
Example project with code with draggable camera views: http://www.mrdoob.com/projects/voxels/#A/