[Solved] Is WorldMesh hitTestWorldMesh bugged?
Hello! I need some help with DeviceTracking.hitTestWorldMesh. It is not behaving correctly on devices that support world tracking. After struggling with the issue in my own project, I installed the official Simple World Mesh template and am experiencing the same issue!
In-editor, everything works fine. On supported devices, only the initial tracking area correctly detects raycast hits. If I turn the phone and tap anywhere outside the initial frame, no ray hits are detected. I've tried a number of new phones that support world meshes (Samsung, iPhone, Xiaomi) but they all behave identically.
The generated world mesh looks correct on all tested devices. It seems to me that the culprit is the hitTestWorldMesh function. Is there a known issue with this function?
Here's a video example of the issue. In this recording, I am periodically tapping the screen however the models will only spawn within the initial tracking area.
Have you changed/played with the spawn configuration?
I'm using a fresh install of the Simple World Mesh project and immediately deploying it to my device. When you say changing the spawn configuration, do you mean modifying the scripts (TapToSpawn.js)?
Yes exactly. I'm going to try it from my end and let you know if I found the solution
Thanks, Abdullah. I appreciate your help
The world mesh raycast is working correctly for me now in Lens Studio 4.16.0. There's no mention of it being patched in the Release Notes but both the Simple World Mesh demo and my own project are working as intended. Thanks!