# Camera Pitch Problem

**URL:** <https://forums.unrealengine.com/t/camera-pitch-problem/453038>\
**Category:** Cinematics & Media\
**Tags:** pitch, unreal-engine, question\
**Created:** [July 29, 2019, 6:27pm UTC](https://forums.unrealengine.com/t/camera-pitch-problem/453038 "2019-07-29T18:27:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_cbaf2160](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cbaf2160](https://forums.unrealengine.com/u/anonymous_user_cbaf2160)\
**Post date:** [July 29, 2019, 6:27pm UTC](https://forums.unrealengine.com/t/camera-pitch-problem/453038/1 "2019-07-29T18:27:35Z")

</div>

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.

 ![283534-ue4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/2/a220a172ec1547ea4fbdc69e709439ff9af524ef.png)

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [July 30, 2019, 12:37pm UTC](https://forums.unrealengine.com/t/camera-pitch-problem/453038/2 "2019-07-30T12:37:01Z")

</div>

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](https://docs.unrealengine.com/en-US/BlueprintAPI/Math/Float/ClampAngle/index.html).
