mrdoob/three.js — Issue #1081: Ray intersection fails when Mesh parent is scaled
Author: krisher
Created: 2012-01-12 03:30:30+00:00
State: open

This is a nearly identical problem as was fixed for [#448](https://github.com/mrdoob/three.js/issues/448):

When a Mesh ancestor is scaled, the ray intersection test does not take this scaling into account when checking for intersection with the bounding sphere (only the mesh scaling is used):

if ( distance > object.geometry.boundingSphere.radius * Math.max( object.scale.x, Math.max( object.scale.y, object.scale.z ) ) )

I verified that this is the problem in my application by manually scaling all of the bounding spheres in the hierarchy, and after doing this, ray intersection worked perfectly.

Perhaps a solution similar to #448 will work with minimal impact?