# Object Jittering When It Is A Child Of The Camera

**URL:** <https://discourse.threejs.org/t/object-jittering-when-it-is-a-child-of-the-camera/47032>\
**Category:** Questions\
**Tags:** aframe, render, textures, materials\
**Created:** [January 18, 2023, 4:49pm UTC](https://discourse.threejs.org/t/object-jittering-when-it-is-a-child-of-the-camera/47032 "2023-01-18T16:49:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItsKazzle](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/itskazzle/32/31607_2.png) [@ItsKazzle](https://discourse.threejs.org/u/ItsKazzle)\
**Post date:** [January 18, 2023, 4:49pm UTC](https://discourse.threejs.org/t/object-jittering-when-it-is-a-child-of-the-camera/47032/1 "2023-01-18T16:49:22Z")

</div>

Hello!

This may be a simple question, but I’m not sure. I have a game I’m creating ([Here](https://kazzle.neocities.org/portalpc.html)) and the portal gun is jittering and freaking out when it’s a child of the camera. I don’t remember having an issue with this before. If this was a vague question, let me know what you need to know and I can tell you! Thanks for the help in advance!

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [January 18, 2023, 6:17pm UTC](https://discourse.threejs.org/t/object-jittering-when-it-is-a-child-of-the-camera/47032/2 "2023-01-18T18:17:52Z")

</div>

@ItsKazzle –

I don’t experience any jittering. But when I looked straight down, made a portal and stepped into it, I found myself in an infinite psychedelic loop.

– Pavel

---

<div class="post-metadata">

**Author:** ![ItsKazzle](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/itskazzle/32/31607_2.png) [@ItsKazzle](https://discourse.threejs.org/u/ItsKazzle)\
**Post date:** [January 18, 2023, 6:23pm UTC](https://discourse.threejs.org/t/object-jittering-when-it-is-a-child-of-the-camera/47032/3 "2023-01-18T18:23:18Z")

</div>

Ya, I find that funny 🙂!  
Also, I think I got it figured out for now, and I just had to remove an object for some reason and It fixed it.

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [January 18, 2023, 6:37pm UTC](https://discourse.threejs.org/t/object-jittering-when-it-is-a-child-of-the-camera/47032/4 "2023-01-18T18:37:36Z")

</div>

@ItsKazzle –

I experienced the jittering. Initially I thought that it is something wrong with the camera position. However, when I reduce the size of the browser, there is no jittering … except when the mouse leaves or enters the canvas. I’ve once experience something similar, and it was caused by have some matrices not updated when needed (so the camera and its `lookAt` used old values). If you dump the vertical coordinate of the camera, does it jitter too?

– Pavel
