This is probably something simple I'm overlooking. But I'm trying to get the position of an Object3D
after panning. I'm using OrbitControls
.
I've tried object.position
, but the result returned is always the same. This is an example fiddle:
https://jsfiddle.net/jmg157/b9xxdubc/
I tried grid.position
, but again, it always returned (0, 0, 0)
, as I set it initially. I also tried setting an ID for the DOM element (container
), and using jQuery's position()
method, but no luck with that either.
So if I right click and pan around the grid, how can I get the new position of the grid on the screen (i.e., top, left)?
As always, many thanks!