Fix rotated touching in 3d

This addresses https://github.com/LLK/scratch-flash/issues/498