Hi Team
@Cedric Surface detection is possible with babylonjs package,
Nice! Is it done with Babylon? I donât see any reference to it in the tweet.
@Cedric Iâm asking is it possible with Babylonâs package?.
Did you check XR features? WebXR Augmented Reality Features | Babylon.js Documentation
cc @RaananW
It is possible using hit-testing, of course.
See the link @Cedric pasted for examples
Okay thanks
AFAIK hit test does work in babylon native, but cc @BabylonNative just to be sure
@RaananW
Do you have any samples for react native webXR?.
i am unable to find it
It does ! BabylonNative/experience.js at a676d6df117cb6cdebc5c347b8aa37f2fed852fb ¡ BabylonJS/BabylonNative ¡ GitHub
idk if itâs enough to get a plane
the example doesnât really take a plane, it adds a plane on the hit-test plane
BJS - [19:28:55]: Hit test is an experimental and unstable feature.
i am getting above error.
not quite an error, just a friendly warning
Not gonna lie, totally expected you to come back just asking them to implement it for you lol. Kudos for doing work, thats really cool you got it working. Any screenshots?
Note to self: check if the expo app ships with this capability
sorry i was little busy
@RaananW @Cedric
var plane = BABYLON.MeshBuilder.CreatePlane(ârttPlaneâ, { width: 4, height: 4 }, scene);
i am facing error in react native
TypeError: undefined is not an object (evaluating â_core.default.MeshBuilderâ)
Is scene in scope?
if you could share code, repro, github project, we will be able to provide help. Otherwise it will be very hard for us to understand the exact issue here.
I guess it is a missing import, but i canât really tell.