three.js - Get the new camera position with onmousemove event on a sphere object and transforming it onto 2D map location -
i have made sphere object camera.position(0,0,1) , using orbit controls(camera). when drag mouse on sphere either of sides how can new camera positions , transform them onto 2-d map ? have searched not find relevant sources if can help, great-full.
your camera position stored vector3 in camera.position, can add face direction controls.target. camera.position vector can calculate position on 2d map x , z position of camera.
Comments
Post a Comment