"phy ray cast" and "phy ray cast all shapes" appear to be both returning the lowest numbered object the ray collides with. For instance, if you cast a ray as so:
-----> 1 2
assuming the numbers are the object number, it will return a collision on object 1.
-----> 2 1
Again, it returns 1 as the object the ray cast hits
-----> 4 8 3 7
returns 3 as the object hit
This happens with both.
phy ray cast closest shape seems to return no collisions of any sort at all, ever, period, end of story. I'm not the only one to report this happening either. I've found posts from even Dark Coder himself reporting this problem with "phy ray cast closest shape"
Everything I needed to know about trigonometry, I learned by becoming a game programmer.