I need help defining the torsion spring shown in image attached. The spring is connected to the housing at one end and the blue pin at the other. The blue pin can move in the slot of the green part that has pin joint with the housing and rotates within a slot. When the green part is rotated anti-clockwise using a handle it compresses the spring till mid way and then the spring extends while the green part reaches the other end. Now I'm not sure if I should use a extension spring or torsion spring here.
An extension spring can be created between blue pin and housing but I'm not sure if it will simulate the physical scenario.
Creating a torsion spring requires a joint axis along the spring and not sure how to that's going to work.