Hi,
With some models I get the following error when trying to move the camera with my mouse
ray.ts:188 Uncaught TypeError: Cannot read property 'subtractToRef' of undefined
at Ray.intersectsTriangle (ray.ts:188)
at SubMesh._intersectTriangles (subMesh.ts:490)
at SubMesh.intersects (subMesh.ts:408)
at Mesh.AbstractMesh.intersects (abstractMesh.ts:1497)
at Scene.push../node_modules/@babylonjs/core/Culling/ray.js._scene__WEBPACK_IMPORTED_MODULE_4__.Scene._internalPick (ray.ts:680)
at Scene.push../node_modules/@babylonjs/core/Culling/ray.js._scene__WEBPACK_IMPORTED_MODULE_4__.Scene.pick (ray.ts:738)
at HTMLCanvasElement._onPointerDown (scene.inputManager.ts:661)
I tried recreating it in a playground, but I wasn’t able to recreate it which leads me to believe that it’s a lifecycle issue issue in React or a BabylonJS engine issue.
Is anybody able to give me a hint to lead me in the right direction?