# Working inside Image Target Tracking and AMMO Physics

**URL:** <https://forum.8thwall.com/t/working-inside-image-target-tracking-and-ammo-physics/2463>\
**Category:** Technical Support\
**Created:** [August 16, 2024, 1:47pm UTC](https://forum.8thwall.com/t/working-inside-image-target-tracking-and-ammo-physics/2463 "2024-08-16T13:47:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_Stiegler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/adrian_stiegler/32/2228_2.png) [@Adrian\_Stiegler](https://forum.8thwall.com/u/Adrian_Stiegler)\
**Post date:** [August 16, 2024, 1:47pm UTC](https://forum.8thwall.com/t/working-inside-image-target-tracking-and-ammo-physics/2463/1 "2024-08-16T13:47:12Z")

</div>

Hi everyone,

Been working with trying to use image target tracking with ammo physics lately and having a heck of a time dealing with ammo-shape / collision bounds using physics.

Was curious if anyone has dealt with this in the past and figured out a proper setup. The entity containing my physics activated objects are inside the image target entity which I think is probably the wrong approach since the colliders live in the world space and are not updating properly due to the changing scale during xrimagefound / xrupdate event updates.

The only other approach I’ve been trying is putting the physics object container outside the image-target entity in the root of the scene, and updating it’s position using xrextras-attach, but of course the scale has to be considered once again during xrimage updates.

Hope that makes sense, thanks!

---

<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 16, 2024, 5:50pm UTC](https://forum.8thwall.com/t/working-inside-image-target-tracking-and-ammo-physics/2463/2 "2024-08-16T17:50:02Z")

</div>

Hi!

I’m having a hard time conceptualizing the issue, would you mind sharing a picture of how your scene is set up?

---

<div class="post-metadata">

**Author:** ![Ian](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/ian/32/430_2.png) [@Ian](https://forum.8thwall.com/u/Ian)\
**Post date:** [August 16, 2024, 11:34pm UTC](https://forum.8thwall.com/t/working-inside-image-target-tracking-and-ammo-physics/2463/3 "2024-08-16T23:34:30Z")

</div>

This thread may be helpful

> [@Stability of xrimagefound positions](https://forum.8thwall.com/t/stability-of-xrimagefound-positions/403):
>
> I would be very happy if the xrimagefound position were more stable. Currently, the scale and position change frequently (the scale increases when the position is far away from the camera and decreases when the position is close to the camera), and although it looks stable, it causes problems when trying to simulate physics. It would be great if the scale is fixed and the only thing that changes is the position. If adding “Specify Size” to the Image Target setting, like the AR Foundation woul…

---

<div class="post-metadata">

**Author:** ![Adrian\_Stiegler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/adrian_stiegler/32/2228_2.png) [@Adrian\_Stiegler](https://forum.8thwall.com/u/Adrian_Stiegler)\
**Post date:** [August 18, 2024, 11:26pm UTC](https://forum.8thwall.com/t/working-inside-image-target-tracking-and-ammo-physics/2463/4 "2024-08-18T23:26:55Z")

</div>

Thanks, this _seems_ to have solved the physics objects glitching out. Appreciate your reference here.

Cheers!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)\
**Post date:** [August 22, 2024, 11:27pm UTC](https://forum.8thwall.com/t/working-inside-image-target-tracking-and-ammo-physics/2463/5 "2024-08-22T23:27:37Z")

</div>

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