# Camera jerks with SpringArm and rotation lag enabled

**URL:** <https://forums.unrealengine.com/t/camera-jerks-with-springarm-and-rotation-lag-enabled/439882>\
**Category:** Editor Scripting\
**Tags:** spring-arm, interpolation, unreal-engine, question, rinterpto\
**Created:** [December 21, 2018, 4:57am UTC](https://forums.unrealengine.com/t/camera-jerks-with-springarm-and-rotation-lag-enabled/439882 "2018-12-21T04:57:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zubetto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zubetto/32/984287_2.png) [@zubetto](https://forums.unrealengine.com/u/zubetto)\
**Post date:** [December 21, 2018, 4:57am UTC](https://forums.unrealengine.com/t/camera-jerks-with-springarm-and-rotation-lag-enabled/439882/1 "2018-12-21T04:57:58Z")

</div>

I have an issue with the [SpringArm](https://api.unrealengine.com/INT/API/Runtime/Engine/GameFramework/USpringArmComponent/index.html) component if `CameraRotationLag` is enabled. When parent component of the _SpringArm_ rotates about the world Y-axis (or about any axis that close enough to it) and passes through the zenith or nadir the camera attached to the _SpringArm_ jerks noticeably. Passing the zenith the rotator changes like this: from `[P=88.9999 Y=0.0000 R=0.0000]` to `[P=87.9999 Y=179.9999 R=179.9999]`. And passing the nadir the rotator changes like this: from `[P=-88.9999 Y=0.0000 R=0.0000]` to `[P=-87.9999 Y=179.9999 R=179.9999]`. There are no issues if the `CameraRotationLag` is disabled. It seems that internally _SpringArm_ uses some rotation interpolation. I tried some little experiment with the [RInterpTo](http://api.unrealengine.com/INT/BlueprintAPI/Math/Interpolation/RInterpTo/) and got the same issue with object jerks when rotation is performed about the world Y-axis. Any help and guidance are very appreciated!

[youtube](https://youtu.be/_jTDhYQDB5Q)

---

<div class="post-metadata">

**Author:** ![zubetto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zubetto/32/984287_2.png) [@zubetto](https://forums.unrealengine.com/u/zubetto)\
**Post date:** [February 14, 2019, 7:27pm UTC](https://forums.unrealengine.com/t/camera-jerks-with-springarm-and-rotation-lag-enabled/439882/2 "2019-02-14T19:27:54Z")

</div>

The most simple solution is to use `FQuat::Slerp` method. [Here](https://github.com/zubetto/XMath/blob/9c4dd55312036a067887d5248ed286f34c61efd9/Source/FlyingTest/XMath.h#L252) some C++ methods using Slerp and exposed to the Blueprints

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [February 15, 2019, 1:18am UTC](https://forums.unrealengine.com/t/camera-jerks-with-springarm-and-rotation-lag-enabled/439882/3 "2019-02-15T01:18:58Z")

</div>

welcome… @zubetto! yes, as you’ve found… the spring arm component does this weird kicking thing at +/-90 degrees when lag is enabled. As you’ve found [Pitch Rotation Glitch at +/- 90 degrees - YouTube](https://www.youtube.com/watch?v=4jHaSkzzRak)

---

<div class="post-metadata">

**Author:** ![zubetto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zubetto/32/984287_2.png) [@zubetto](https://forums.unrealengine.com/u/zubetto)\
**Post date:** [February 15, 2019, 5:39pm UTC](https://forums.unrealengine.com/t/camera-jerks-with-springarm-and-rotation-lag-enabled/439882/4 "2019-02-15T17:39:59Z")

</div>

Oops! I should be more observant and replenish my vocabulary (I only searched for spring arm “issue” or “problem”).  
You might be interested in the demo of my _CameraSmartStick_ actor component which, I hope, will be approved for the marketplace soon:  
[Demo](https://youtu.be/F1Xy0dwGmxg)  
[Parameters overview](https://youtu.be/2lG1XLu7mj4)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 22, 2023, 4:44pm UTC](https://forums.unrealengine.com/t/camera-jerks-with-springarm-and-rotation-lag-enabled/439882/5 "2023-05-22T16:44:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
