viromedia / viro

ViroReact: AR and VR using React Native
MIT License
2.31k stars 483 forks source link

The principle of 'position' returning from function 'onCameraTransformUpdate' in <ViroARScene> #955

Open Eddie-hubb opened 3 years ago

Eddie-hubb commented 3 years ago

I'm trying to use Viro to implement simple indoor navigation. And I'm gonna use the 'position' returning from 'onCameraTransformUpdate' to represent the real position of the user and the destination. However, I want to know the principle of this property. I have checked the ViroARScene.js file but it does not tell me properly. I guess it might use 'slam' or sth else.

nonnoz commented 3 years ago

Hi, I am trying to use this function to get the return value too. But I do not know how to get the return value. So I think maybe you can help me. If you can show the code or something, about its usage, that will help me a lot!

skizzo commented 1 year ago

Hi @Eddie-hubb , did you figure this out?