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

Enable hit testing against different entityTypes in BabylonNative #364

Merged
merged 10 commits into from Aug 13, 2020

Conversation

Alex-MSFT
Copy link
Contributor

@Alex-MSFT Alex-MSFT commented Aug 12, 2020

This is the BabylonNative half of Babylon.js change #8724, which resolves #356. This change enables hit testing against the three different supported entity types for WebXR: "plane", "mesh", and "point".

This just hooks up the API to the native hit test code for filtering our hit test queries. The way I have represented the enum internally is as a bitfield enum to allow specifying multiple hit test target types.

Copy link
Contributor

@bghgary bghgary left a comment

Choose a reason for hiding this comment

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

Seems okay to me. @syntheticmagus Do you want to review it also?

Dependencies/xr/Source/ARCore/XR.cpp Outdated Show resolved Hide resolved
Dependencies/xr/Source/ARCore/XR.cpp Outdated Show resolved Hide resolved
Plugins/NativeXr/Source/NativeXr.cpp Outdated Show resolved Hide resolved
Dependencies/xr/Include/XR.h Outdated Show resolved Hide resolved
@Alex-MSFT Alex-MSFT merged commit 6868472 into BabylonJS:master Aug 13, 2020
@Alex-MSFT Alex-MSFT deleted the hitTestTrackableTypes branch May 7, 2021 22:40
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.

Flesh out ARCore/ARKit XR implementations on hit testing to respect XRHitTestTrackableType
2 participants