I'm working on a a patch for my timearts class and I'm trying to use motion detection to control the rotation of 4 cubes in a window. Basically the only thing i can't get right is tying the motion detection to the rotation of the cubes. I uploaded the the basic structure of the patch. Please help.
http://www.pdpatchrepo.info/hurleur/4-cube-motion-detection-patch.pd