I'm trying to simply place an object onto a surface, but I'm having some trouble with the APIs. I have a method that works in the simulator, but not on device.
var surfacePosition = deviceTracking.hitTestWorldMesh(screenPoint)
The docs for this method say that world tracking needs to be enabled, but even when I enable it, it doesn't work on my phone. Ideally I would be able to just use surface tracking and perform a hit test that way.
I see there are ray casting method for physics, but do I really need to do all that for this simple thing?