needle-tools / needle-engine-support

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development, and can be deployed anywhere. It is flexible, extensible and includes networking and XR - across platforms. Documentation at https://docs.needle.tools
547 stars 46 forks source link

Spatial Triggers do not scale for AR in Web AR Session Root #78

Closed ROBYER1 closed 4 weeks ago

ROBYER1 commented 2 years ago

Using Unity 2022.1.16f1, updated to Exporter 2.27.2-pre

Make a scene with Spatial Triggers around, deploy it to Desktop and AR, see that in AR the volumes are not scaled.

Some kind of helpers enabler for this could help for build debugging?

marwie commented 2 years ago

With helpers you mean visualization? You can add a BoxGizmo component and either disable isGizmo on it or open your webpage with a url query parameter: ?gizmos

ROBYER1 commented 2 years ago

That's perfect I'll use that

marwie commented 2 years ago

First debugging results: Looks like spatial triggers get scaled correctly but the spatial trigger receiver attached to the camera has a wrong scale and causes unexpected intersections