rhdeck / react-reality

Augmented Reality built out of React Components
20 stars 3 forks source link

Fix `onUpdateAnchors` data parsing #3

Closed chukcha-wtf closed 6 years ago

chukcha-wtf commented 6 years ago

data object for updatePlanes is actually a

data: {
  key: 'someKey',
  data: {
    id: 'someId'
  }
}

Propsed change should fix this function and make onUpdateAnchors work again.

rhdeck commented 6 years ago

Thanks!

chukcha-wtf commented 6 years ago

@rhdeck do you happen to know how can I get a position of the plane detected? Currently I can only get it’s width and height, but it’d be good to know it’s positioning relative to the world as well as to the camera. I’ve checked source code and seems that it’s smth that’s missing (compared to react-native-arkit)