But again, it works perfectly when rotated on only one angle.I know the pick ray generation is working properly, as is the collision test. (They have both been tested pretty thoroughly in several previous instances) I am not sure if this helps, but here is the rest of the code for the globalToLocal function.