What is the purpose of the timer - to execute the script each second/milisecond? The problem with your code is that "intersect" always returns an array of objects. If you have several objects one after another, for example Teapot003 is in front of Teapot001, whics is in front of Teapot005, which is in front of Teapot002,…
Yeah, you're right. The timer actually redundant as I commented the first line and nothing happen, the code still works like what I expected. I don't quite understand your point with the "intersect" though, the original code was for making a list of object under the mouse cursor, hence return the array of objects like what…