Changing orientation of polygon

Hi everyone,
What are you trying to achieve?:
I want a simple elongated bar that is oriented in a random direction each trial. The participant is then supposed to rotate that bar to a desired rotation using the keyboard.

What did you try to make it work?:
I’ve created a rectangular polygon with a desired aspect ratio (e.g., (0.1, 1)) and created code to change the polygon.ori parameter by using a button.
The problem is that if the orientation of the polygon is changed it rotates in a 3D space, not in 2D as I expected. Furthermore, this way it is obvious that the actual polygon is a square and just looks to have the wanted aspect ratio from the intial view but is square when viewed from the rotated perspective.
The same thing happens if I add the line as an image: Rotating it shows that it is a square in 3D space.

Can i truly create a rectangular polygon and only rotate it in a 2D plane?

Thanks in advance!


This issue has been flagged to the developers and will be fixed in our next bug fix release.

Sue Lynn