Specify that getViewerPose throws an error for non-rAF XRFrames by toji · Pull Request #535 · immersive-web/webxr · GitHub
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

Specify that getViewerPose throws an error for non-rAF XRFrames #535

Merged
merged 1 commit into from
Feb 22, 2019

Conversation

toji
Copy link
Member

@toji toji commented Feb 21, 2019

Previous explainer text indicated that this scenario should have returned null, but that seems inconsistent with the behavior of other similar restrictions, so I've updated it to throw an InvalidStateError. Thanks to Jacob DeWitt (for whom I don't yet know a GitHub handle) for helping highlight the inconsistency!

Copy link
Member

@NellWaliczek NellWaliczek left a comment

Choose a reason for hiding this comment

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

This is absolutely a change I've wanted to make since adding the viewerSpace. So 👍
Perhaps worth adding a sentence (maybe in the explainer?) to indicate that the pose of the viewer can still be retrieved in non-RAF frames by passing viewerSpaceinto getPose().

@toji
Copy link
Member Author

toji commented Feb 22, 2019

Thanks! Added the recommended sentence.

@toji toji merged commit bef9369 into master Feb 22, 2019
@toji toji deleted the viewer-pose-scope branch February 22, 2019 23:42
@AdaRoseCannon AdaRoseCannon added ed:spec Include in newsletter, spec change ed:explainer Include in newsletter, explainer change labels Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ed:explainer Include in newsletter, explainer change ed:spec Include in newsletter, spec change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants