I’ve released a Three.js–based Project as Cloneable Code that combines image targets with physics simulation.
It moves just like in the attached video.
Ammo.js is used via modules, and since that’s also Cloneable Code you can inspect how it’s set up.
To prevent objects from clipping through walls, I tweaked collider thickness and, rather than snapping the object following the image target to a new position, I apply forces to move it.
The use of detail.position and detail.scale to calculate and produce stablePosition is also important for physics simulation.
I know most people probably won’t care, but if anyone does need it, feel free to use it.
I can’t offer support, but if you feed the code to an AI it should understand and put it to good use.