How do I lock the rotation of an Actor rotated by a key press?
Eventually, what I wish to achieve is a touch input where swiping rotates the Actor between 70 and -70 degrees on the X axis. I'm hoping to get it working so that swiping left will make the Actor rotate one way, while swiping right makes the Actor rotate the other way.
So far I've managed to get an Actor to rotate continuously on the X axis by holding down the 'J' key:
I'm not sure how to make the rotation stop at 70 degrees on the X axis. Could someone help me with this?
At the top of the Blueprint you can see I've tried to add a Boolean to check when the rotation of the Actor reaches a certain point, but it doesn't seem to register at all.
If I can figure out how to limit the rotation of the Actor once it reaches the desired rotational point, hopefully I can then figure out how to apply it to Touch Input so that I can eventually get a swiping rotation going!
Appreciate the help in advance!
asked Mar 26 '18 at 02:39 AM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here