Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onAnchorDetected doesn't return the position or the eulerAngles of the image detected #199

Open
FrancoisBourree opened this issue Jun 5, 2019 · 0 comments

Comments

@FrancoisBourree
Copy link

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
Screenshot 2019-06-05 at 11 22 50

for the onAnchorUpdated
Screenshot 2019-06-05 at 11 24 41

Here we can see that the onAnchorUpdated return the correct values and when the event is called after the values update properly.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant