2D Suspension on a single axis

Godot Version

Godot 4.2.stable


I try to make a mountainbike suspension in 2D but i can not restrict the spring to work on a single axis. I tried with Groovejoint but is not working. Is there any way to create a suspension that works on a single axis ?