Active object switching (round 2_ - Ray returns garbage hits

So I’ve finally got a good basis for
my active object switching, but when
I call object.sensors[“Ray”].hitObject I’m getting
quasi-random returns - if any.
And when it DOES return the right thing,
ray.axis goes the wrong (i.e. 4 moves on
+X instead of -Y) - also randomly.

Also, the returns are appending data!


–> arrows to spin cube
–> LEFT CTRL + arrows to switch cubes
–> W/S/A/D to control camera