Problem with "Locked track" constraint for an animation

Hello,

I want to make a little animation with some constraints, when I drag the blue object on the X axis the red object must move on the +Y axis, I used a “Locked track” constraint but the blue object doesn’t stay in the pivot.



Thank you in advance

max2357

Attachments

test.blend (487 KB)