Hi, I recently started to learning Unreal engine 4 (Version 4.25.4 First Person template) and faced a problem then I started making interactive lever for my project.
This is most of my changed code:
I want to limit rotation of my lever between 0 and 135 degrees of Y axis. I tried to use clamp angle to do this, but no meter what I do there is only three outcomes.
First (Max angle decrees is lower than 85):
In this case it seems to work fine, but I discovered what the more I pull mouse upper or lower the limit, then faster lever breaks (starts rotates on other two ases), and also I discovered what then higher Max limit, then faster it breaks.
Second (Max angle decrees is higher than 85):
The Max limit somehow jumped to 170 degrees, but otherwise everything is same as in the first example.
And third:
When lever crosses 85 degrees, lever teleports to another axes and keep on rotates on Y axis.
How can I solve it?