onInitialXRPoseSetObservable never fires for immersive-ar - is there another way to detect when the xrCamera is first updated?

In VR mode, I’ve been using onInitialXRPoseSetObservable to react to the initial XR pose.

In AR mode, I’m finding this observable never fires. Is there another option to detect when the xrCamera’s transforms have been updated from WebXR?

Here’s an AR PG where the event never fires: https://playground.babylonjs.com/#9K3MRA#1278

And here’s the same PG in VR mode, the event does fire: https://playground.babylonjs.com/#9K3MRA#1277

Tested on: Immersive Web emulator and Quest 2

1 Like

that can’t be right! :slight_smile:
I consider that as a bug. The observable should trigger. will be fixed in the next version.

[XR] Call the onInitial observable in AR mode as well by RaananW · Pull Request #13993 · BabylonJS/Babylon.js (github.com)

Awesome! Thanks @RaananW

1 Like