Limit camera/object rotation
Hi, anybody knows how to set boundaries for pitch and yaw for mouse input? I want to control came after using set view target.
I was trying to use clamp and clamp angles with min and max values but that didnt work.
Thx for help.
asked Dec 03 '18 at 12:45 PM in Blueprint Scripting
there are several ways to approach this...
the issue you are having is in using the Add Relative Rotation. Even if you clamp the input float, it will still "add" to relative rotation.
The simplest way with your current setup would be to add the following to Tick > Get Relative Rotation > Clamp > Set Relative Rotation
answered Dec 04 '18 at 01:36 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here