# Image target - object is moving

**URL:** <https://forum.8thwall.com/t/image-target-object-is-moving/2474>\
**Category:** Technical Support\
**Tags:** image-targets\
**Created:** [August 17, 2024, 10:37pm UTC](https://forum.8thwall.com/t/image-target-object-is-moving/2474 "2024-08-17T22:37:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noel\_Hanna\_Kazazian](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@Noel\_Hanna\_Kazazian](https://forum.8thwall.com/u/Noel_Hanna_Kazazian)\
**Post date:** [August 17, 2024, 10:37pm UTC](https://forum.8thwall.com/t/image-target-object-is-moving/2474/1 "2024-08-17T22:37:17Z")

</div>

Hi,  
I am using Image targets to place an object, but my object does not stay at the same place when I move my device, it changes position around the image when I move my phone.  
I am using a script similar to the following project:

> **[three.js: Image Targets Flyer | 8th Wall | 8th Wall](https://www.8thwall.com/8thwall/flyer-threejs)**
>
> Displays information on a flyer tracked to image targets. Introduces image target tracking and video playback.

Is there a way to prevent the object from moving?

Thank you.

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [August 19, 2024, 4:12pm UTC](https://forum.8thwall.com/t/image-target-object-is-moving/2474/2 "2024-08-19T16:12:13Z")

</div>

Hi Noel,

Does it behave the same way as the sample project? Depending on what you’ve changed it could be a variety of things.

---

<div class="post-metadata">

**Author:** ![Noel\_Hanna\_Kazazian](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@Noel\_Hanna\_Kazazian](https://forum.8thwall.com/u/Noel_Hanna_Kazazian)\
**Post date:** [August 19, 2024, 10:59pm UTC](https://forum.8thwall.com/t/image-target-object-is-moving/2474/3 "2024-08-19T22:59:37Z")

</div>

Hi George,  
I don’t think it’s something I changed, because when I replace my object by the jelly fish model in my project, everything works fine and the object does not move when I move the device.  
I have the following code:  
" const showTarget = ({detail}) =\> {  
if (detail.name === ‘video-target’) {  
depthkit.position.copy(detail.position)  
depthkit.quaternion.copy(detail.rotation)  
depthkit.scale.set(detail.scale = 20, detail.scale = 20, detail.scale = 20)  
depthkit.video.muted = false  
depthkit.visible = true  
depthkit.video.play()  
}  
}"

I noticed that on the line “depthkit.scale.set”, when I update the last parameter as follows:  
“depthkit.scale.set(detail.scale = 20, detail.scale = 20, detail.scale = **1** )”, there is no issue anymore and the object stops moving when moving the device (but the object looks flat).

Any ideas what may be causing this issue and how to solve it?

Thank you.

---

<div class="post-metadata">

**Author:** ![Tirso\_Perez](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@Tirso\_Perez](https://forum.8thwall.com/u/Tirso_Perez)\
**Post date:** [January 16, 2025, 6:37pm UTC](https://forum.8thwall.com/t/image-target-object-is-moving/2474/4 "2025-01-16T18:37:55Z")

</div>

Has a solution been found for this yet? My problem is the very same thing and also have the solution when i set the z to 1. Fixes the problem but its very flat.

---

<div class="post-metadata">

**Author:** ![Evan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/evan/32/431_2.png) [@Evan](https://forum.8thwall.com/u/Evan)\
**Post date:** [January 16, 2025, 6:42pm UTC](https://forum.8thwall.com/t/image-target-object-is-moving/2474/5 "2025-01-16T18:42:01Z")

</div>

can you share a video of the issue? does the model appear more stable if you set scale to something smaller, like 5 or 10?

```auto
depthkit.scale.set(5, 5, 5)

```

---

<div class="post-metadata">

**Author:** ![Noel\_Hanna\_Kazazian](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@Noel\_Hanna\_Kazazian](https://forum.8thwall.com/u/Noel_Hanna_Kazazian)\
**Post date:** [January 22, 2025, 9:28pm UTC](https://forum.8thwall.com/t/image-target-object-is-moving/2474/6 "2025-01-22T21:28:37Z")

</div>

Hi @Evan, the issue is the same if we reduce the scale. Here is a video of the issue, where the object is moving. Could you please help fix this issue? Thank you
