

Create sceneĬonst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000) Ĭonst renderer = new THREE.WebGLRenderer() Simply point one of the four corner arrows at the spot on your screen that you want to define and click the button to display the X/Y coordinates. So when i click on left-top corner of the plane, I want to get the coordinate in the matrix (0,0), and when click on the right-bottom corner of the plane - (9, 9) coordinate Setup the sceneĪdded there a little description too // 1. Point Position (for Windows) is a simple tool that lets you pick the coordinates for any point on your screen (using X,Y axis).


The position can be displayed simply as (x,y) where x and y are coordinates of the. Let's say the ChunkSize parameter is 10, which means I have an imaginary 10x10 matrix. The application should display the current position of mouse pointer. When I click on a plane, I want to determine to which "imaginary matrix" coordinate belongs this world coordinate (intersaction coordinate). I'm using a PerspectiveCamera which follows the player's position. Also i have another object, let's call it a player, that moves on our plane. I set the size of the plane based on the chunkSize parameter. I will be very grateful for your help! Description: One feature of the Mouse variant is that we can also change or move the mouse cursor to any coordinates we want on the desktop. Hi! I faced a tricky task that I can't solve for a long time. Mouse.MouseX(Y) The Mouse variant is less commonly used and it gets the X and Y coordinates of the mouse cursor relative to the top left of the desktop, even if no GraphicsWindow is present.
