webxr-polyfill icon indicating copy to clipboard operation
webxr-polyfill copied to clipboard

TypeError: XRRigidTransform is not a constructor

Open nkast opened this issue 4 months ago • 0 comments

I am using the Immersive Web Emulator chrome extension.

When I am calling xrFrame.getViewerPose(XRReferenceSpace); I am getting a TypeError: XRRigidTransform is not a constructor from this line: return new XRRigidTransform(transform.matrix); https://github.com/immersive-web/webxr-polyfill/blob/7a6090614e226e2d2839f251a451f559bb2358fc/build/webxr-polyfill.js#L1064

I managed to fix this locally by replacing it with return new XRRigidTransform$1(transform.matrix);

nkast avatar Oct 15 '24 02:10 nkast