Broken playground example in documentation

Great work on the new documentation layout with 4.2!
Love to see all the new improvements to resources like this!

On this page: Using A Physics Engine | Babylon.js Documentation

The link labeled: “WebVR grabbing and throwing” to this playground displays a blank screen. In the console the error is:

Uncaught TypeError: Cannot read property 'leftController' of undefined
at <anonymous>:124:65
at Array.forEach (<anonymous>)
at r.callback (<anonymous>:122:21)
at e.notifyObservers (babylon.js:16)
at t.render (babylon.js:16)
at babylon.playground.js:16
at t._renderFrame (babylon.js:16)
at t._renderLoop (babylon.js:16)

Even though I have the WebXR emulator plugin installed, I’m unable to start immersive mode due to the error. I’m using Macbook Pro OS 10.15.7 with Chrome 86.0.4240.193.

1 Like

Pinging @RaananW.

This is because it is a WebVR demo. WebVR is deprecated :slight_smile: The WebXR demo page has a physics playground which you can play with to understand physics and WebXR.

Needs top be removed, will be done very soon.