-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
WebXR AR hit test support #1926
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a few fixes to the JSDoc blocks (mainly fixing all the missing @link tags). Can you check out my comments on function signatures please. Thanks!
This is great! Can you also include an engine example that exercises this new functionality please? |
I've changed function, so now there is only one |
OK @Maksims, I think this PR is now in pretty good shape. You might wanna edit the description to remove the comment about it being in draft now. 😄 For some reason, I'm still not that keen about the
Instead of:
|
"No callback" is very valid case, where you would subscribe to And if you insist on adding callback as separate argument, then usually it is a last argument (most APIs do that way).
Additionally could be a Promise - but you know my personal stance to them ;) |
Yeah, let's not go with Promises. 😆 Based on what you say, I think So I should go ahead and merge? For some reason, CircleCI failed to run the tests.... I wonder why. |
Yes please.
Indeed, not sure why. |
* stable: (48 commits) [RELEASE] v1.26.0 [FIX] null access when pushing SpectorJS marker without camera (playcanvas#1933) [FIX] pc.XrHitTest when WebXR not available Update package-lock.json Downgrade mocha to 6.2.2 WebXR AR hit test support (playcanvas#1926) [ImgBot] Optimize images (playcanvas#1927) [DOCS] Make anim API private (playcanvas#1924) Update NPM dependencies. [FIX] Update some example paths Update to latest JSDoc template [FIX] Updating of particle systems local bounds Add pc.drawTexture to render texture to target using a shader (playcanvas#1920) Optimize Grab-Pass for WebGL 2 and fix when using anti-aliased RenderTarget (playcanvas#1918) [DOCS] Document drawQuadWithShader and copyRenderTarget (playcanvas#1919) [FIX] Mouse wheel events on elements (playcanvas#1916) glTF 2.0 support (playcanvas#1904) Update to latest JSDoc template. Add support for ES6 script classes (playcanvas#1908) Particle system randomize sprite animations (playcanvas#1911) ...
* webxr hit test * lint fixes * add missing error event * fix build:all * tipes -> types * tipes -> types * Fix links * Fix links * Fix links * simplify hit-test start function * small fixes * XrHitTest.hitTestSources > XrHitTest.sources * ar hit test example * fix merge Co-authored-by: Will Eastcott <will@playcanvas.com>
Implementation of WebXR Hit Test Module. Bear in mind, it is still in Draft. So is a subject to change.
New APIs:
Basic example of painting grass on the floor by touching mobile screen in AR session:
I confirm I have signed the Contributor License Agreement.