Hi,

I am experimenting with GLTF models and the GridHelper.

I add a grid to a scene using the GridHelper. For simplicity let’s say it is 100x100 with 10 segments so I have 10 squares on my X axis and 10 squares on my Y axis (think checkerboard).

Three.js presents the grid as a 3D object on the screen which is what I need.

I then load a GLTF model onto this scene (and hence it is showing on the grid).

I add DragControls to this model and I drag the model around the grid.

Again, to make things simple I restrict the ‘drag movement’ to only X,Z (I force Y to a constant value so that the object is always ‘on the grid’)

If I label my grid with say, letters across the X axis and number across the Y axis how can I find the position of my model on the grid?

In other words, how can I translate the position of the model to the squares of the grid such as ‘the model is on L-7’?