Currently, I am using THREE.js to develop a game.
At the moment, there is an object positioned here:
(-83645, 476450, 412912)
I am working on implementing click detection on this object. However, the raycaster I am using from the THREE.js example site seems to be producing skewed rays. By adjusting all the coordinates down by 100, the raycasting functions correctly.
I suspect there might be an issue with division during normalization or possibly an overflow error occurring with certain divisions. Right now, I am compensating by reducing the coordinates, but we ultimately want to keep the coordinates intact.
Does anyone have insights into why the large coordinates are causing the ray skewing? Thank you in advance!
UPDATE: Here's a quick fiddle: http://jsfiddle.net/88ehm1yf/