# Camera Stutter Problem

**URL:** <https://forums.unrealengine.com/t/camera-stutter-problem/501076>\
**Category:** Blueprint\
**Tags:** unreal-engine, stuttering\
**Created:** [February 22, 2022, 6:57pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076 "2022-02-22T18:57:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle54106](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle54106](https://forums.unrealengine.com/u/Kyle54106)\
**Post date:** [February 22, 2022, 6:57pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/1 "2022-02-22T18:57:25Z")

</div>

Hello there,

I’m working on a levitate ability and having trouble with the camera lock. It works great in PIE but goes completely whack when in a packaged build, if anyone knows what causes those kinds of errors and could help out it would be greatly appreciated!

[PIE Ability](https://youtu.be/dx7ag_6TUAI)

[Packaged Ability](https://youtu.be/N3LA8KU9FZ4)

Camera Lock Blueprint:

 ![lock on blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/5/555f7a1cbb78578ddedcd1a377e763851739b58f.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 22, 2022, 7:00pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/2 "2022-02-22T19:00:27Z")

</div>

Apparently it’s an over 18 vid…

Is this on tick, by any chance? You basically can’t use a delay on tick, if you think about it 😉

---

<div class="post-metadata">

**Author:** ![Kyle54106](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle54106](https://forums.unrealengine.com/u/Kyle54106)\
**Post date:** [February 22, 2022, 7:15pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/3 "2022-02-22T19:15:24Z")

</div>

Sorry about the age restriction, that’s fixed now. Also it’s not running on a tick, just a loop delay that’s a lot slower than a tick

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 22, 2022, 7:17pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/4 "2022-02-22T19:17:58Z")

</div>

Tick is 0.008, typically…

Now the vids are private 😃

Can you show a bit more of the BP, it’s hard to say anything meaningful.

---

<div class="post-metadata">

**Author:** ![Kyle54106](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle54106](https://forums.unrealengine.com/u/Kyle54106)\
**Post date:** [February 22, 2022, 8:18pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/5 "2022-02-22T20:18:34Z")

</div>

Alright so, I fixed the videos properly this time, I promise haha. (double checked as a signed out user)

Basically the way it works is through a physics handle that grabs a targeted object and can be moved left/right/up/down by adding relative location.

 ![controls](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/d/a2d2c03bd3bb73408af9695c045e21d7becd5942.png)

 ![grab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/7/02722334a1b24019e41bc422798bd7fdd526a5f2.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 22, 2022, 8:31pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/6 "2022-02-22T20:31:18Z")

</div>

Ok!

The camera code looks ok, but some thing might help ( in no particular order ):

1. Do it on tick without the delay

2. Get the world location of the camera, not the player for the look at.

3. Your camera code might be fighting the character code, you can try it with a separate camera to find out.

It looks a lot like the object is jumping around actually, and hence causing the camera shake.

I never use physics handles, it’s normal tell them to move 120 units at once?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 22, 2022, 9:01pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/7 "2022-02-22T21:01:45Z")

</div>

Thinking about it actually, wouldn’t it be easier to just make the cube follow the camera?

---

<div class="post-metadata">

**Author:** ![Kyle54106](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle54106](https://forums.unrealengine.com/u/Kyle54106)\
**Post date:** [February 22, 2022, 10:14pm UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/8 "2022-02-22T22:14:16Z")

</div>

So I removed the delay and it causes the object to move by itself very fast.

As for having the cube follow the camera, what would be a good way to try that? Using the cube as the start point for the look at rotation or something else?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 23, 2022, 9:53am UTC](https://forums.unrealengine.com/t/camera-stutter-problem/501076/9 "2022-02-23T09:53:53Z")

</div>

Ok, so I’ve coded something that will ‘stick’ the mesh on the end of the camera:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/4/2e4b4449c109a99d2d1e25e8c03c2877b4aef2c2.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/b/9eb2909b48b58c73308ad267c83d957a62881547.png)

![levitate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/9/af9730548f00e4959d1c98328e63021c5f9995eb.gif)
