google-ar / three.ar.js

A helper three.js library for building AR web experiences that run in WebARonARKit and WebARonARCore
https://developers.google.com/ar/develop/web/getting-started
Apache License 2.0
2.91k stars 365 forks source link

Any way to get ARPlaneAnchor data ? #112

Closed pulkitjuneja closed 6 years ago

pulkitjuneja commented 6 years ago

Is there any way to get the ARplaneAnchor data. I need this so I can compute a PlaneGeometry out of it which i can then use in my physics calculations

jsantell commented 6 years ago

You can use the underlying platform APIs that WebARonARKit and WebARonARCore use that three.ar.js wraps around; see the anchor and planes APIs here. You can also see how the ARAnchorManager and ARPlanes are implemented, or see if you could use those directly -- hope this helps!