Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Crash when try get relative pose in XRInputController between grip and ray #287

Open
eXponenta opened this issue Jun 3, 2022 · 0 comments

Comments

@eXponenta
Copy link

Emulator down with:

VM13:1284 TypeError: coordinateSystem._transformBasePoseMatrix is not a function
    at GamepadXRInputSource.getXRPose (<anonymous>:5336:42)
    at EmulatedXRDevice.getInputPose (<anonymous>:36773:54)
    at XRFrame.getPose (<anonymous>:1084:37)
    at XRInputModel.updateRayTransform (XRInputTransform.ts:98:36)
    at XRInputModel.update (XRInputTransform.ts:116:14)
    at eval (XRRenderer.ts:293:134)
    at Array.forEach (<anonymous>)
    at XRRenderer._renderRenderListXR (XRRenderer.ts:293:25)
    at XRRenderer.render (XRRenderer.ts:381:18)
    at update (index.ts:127:14)

When i try read relative position between gripSpace and targetRaySpace. On real devices all ok and positions computed as should be.

Can be suppressed by try {} block in user code, but looks unstable.

see demo:
https://github.com/eXponenta/web-xr-ogl-js/blob/crash-relative/src/xr/XRInputTransform.ts#L130

@eXponenta eXponenta changed the title [bug] when try get relative pose in XRInputController between grip and ray [bug] Crash when try get relative pose in XRInputController between grip and ray Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant