Open FrancoisBourree opened 5 years ago
Hi,
I tried to get the position and the eulerAngles of the image I detect with the event listener "onAnchorDetected" here is my code
render() { console.log("render"); return ( <View style={styles.container}> <ARKit style={{ flex: 1 }} debug onAnchorDetected={anchor => this.imageDetected(anchor)} onAnchorUpdated={anchor => this.imageDetected(anchor)} detectionImages={[{ resourceGroupName: 'DetectionImages' }]} onARKitError={console.log} > </ARKit> </View> ); }
imageDetected = (anchor) => { console.log(anchor); }
Here is what the console return : for the onAnchorDetected
for the onAnchorUpdated
Here we can see that the onAnchorUpdated return the correct values and when the event is called after the values update properly.
Thank you
Hi,
I tried to get the position and the eulerAngles of the image I detect with the event listener "onAnchorDetected" here is my code
Here is what the console return : for the onAnchorDetected
for the onAnchorUpdated
Here we can see that the onAnchorUpdated return the correct values and when the event is called after the values update properly.
Thank you