Coordinate display
0
To better navigate in space, I decided to add coordinates at a point, which is the projection of the cursor from the camera onto the coordinate planes. It is implemented using Raycaster. Invisible planes are added along the axes, the intersection with which is checking. From the intersection, I dashed lines and hung a label with the coordinates. For label, launched the second CSS2DRenderer render. It is rendered on top of the canvas, so now events need to be caught on it, and not on the canvas, for example
const controls = new OrbitControls (camera, labelRenderer.domElement);
0