Unable to access WebXR motion controllers?


Having read extensively through other posts, I am still struggling with a very basic WebXR feature: how do I access the motion controllers and get their position in world space? Here is a playground illustrating the problem:

Every time I try to access the motion controllers, I get a null reference. I am a real beginner with both Babylon and WebXR in general, so I am sure I am missing something quite basic. I am using the Mozilla WebXR emulator for testing.

Many thanks to anyone able to help me out!

It’s a Christmas miracle - figured it out just after posting this comment (after a few days of hitting head against wall).