I set the python controller to “module”, and put .main on the end of the title. I applied this to a cube (called “Guy”). The idea is to align the cube with whatever wall he touches. But, no matter what, the cube always copies the rotation of one of the “Wall” copies, even if I touch another Wall first. I even used the trick of empties set as “groups”, but that didn’t make a difference. Can I make this work? Thanks.
Oh, NOW it works! Great! This is a “matrix” type system, right? I still haven’t figured out how those work, but plugging in that code does the trick, even when I use empties set to “wall” group.