Raycasting Oculus Quest - can't change laser color

Using the VRExperienceHelper with an Oculus quest, I want to change the laser color from a controller, so, following the documentation, I try:

VRHelper.changeLaserColor(new BABYLON.Color3(0.5,0.1,0.1));

but nothing seems to change. On looking at the code while running, it seems that every time round the main loop, a call to _castRayAndSelectObject is called, and this clobbers my laser color with a predefined one. Is this a bug, or am I just not understanding how and when to call the function.


Pinging @RaananW

Seems like a bug. The color is constantly set, exactly as you described.
Care to crate a GitHub issue for that?

Not sure if it’s me you’re asking to raise the issue, but I’m happy to do so if you want me to.
Now raised as https://github.com/BabylonJS/Babylon.js/issues/7323

Thanks a lot!
That was helpful :slight_smile:

I hope this is what you needed :slight_smile:


Many thanks.