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

Remove pose arg from XRHitTestResult.createAnchor() #50

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

bialpio
Copy link
Contributor

@bialpio bialpio commented Jun 3, 2020

Remove pose parameter from XRHitTestResult.createAnchor() API as it does not expand the capabilities of the API - applications can maintain fixed offsets relative to anchors themselves.

Additionally, add missing returns into anchor creation algorithms in case they are supposed to early-exit (related to issue #44).

Fixes #48.


Preview | Diff

Remove pose parameter from XRHitTestResult.createAnchor() API as it does not expand the capabilities of the API - applications can maintain fixed offsets relative to anchors themselves.

Additionally, add missing returns into anchor creation algorithms in case they are supposed to early-exit (related to issue #44).

Fixes #48.
Copy link

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also makes #49 slightly cleaner 😄

@bialpio bialpio merged commit 4d5d7d2 into master Jun 5, 2020
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

Successfully merging this pull request may close these issues.

Should XRHitTestResult.createAnchor() have the pose argument?
2 participants