When Im not using the clamp the pitch System Works fine. Once I hooked it up though the Camera freeks out and the PItch jumps bettween -10 and -90 all the Time.
Axis values blend between their endpoints, generally set to -1
and 1
.
You are then multiplying by PanSpeedMultiplier
, not sure what its value is, lets say 50
Then adding existing pitch.
-
AxisInput
(-1
) *PanSpeedMultiplier
(50
) +CurrentPitch
(0
) =>-50
Then you are Clamping
the value to be AT MINIMUM -10
, and AT MAXIMUM -90
UE is having a hard time finding a number -10 < x < -90
.
-
-50
can’t be greater than-10
or less than-90
, so which way should it clamp to?
You’ll want to change those numbers to give UE a legal range to try to clamp. Switching them would be one way.
You could also try using Clamp Angle.