didier-vdidier-vIn Blender, you can drive any property of an object with any property of another object. Here I rotate the cube by moving the sphere.