@needle-tools/engine 3.25.4 → 3.25.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10841,7 +10841,7 @@ function B5(n, e, t, i, s, r, o) {
10841
10841
  ve = $r.vertexShader, ge = $r.fragmentShader;
10842
10842
  } else
10843
10843
  ve = E.vertexShader, ge = E.fragmentShader, c.update(E), Ee = c.getVertexShaderID(E), Me = c.getFragmentShaderID(E);
10844
- const Ge = n.getRenderTarget(), Qe = H.isInstancedMesh === !0, ht = !!E.map, Mt = !!E.matcap, st = !!L, W = !!E.aoMap, Fe = !!E.lightMap, Ae = !!E.bumpMap, Le = !!E.normalMap, Ce = !!E.displacementMap, tt = !!E.emissiveMap, qe = !!E.metalnessMap, Ye = !!E.roughnessMap, vt = E.anisotropy > 0, Tt = E.clearcoat > 0, Kt = E.iridescence > 0, z = E.sheen > 0, k = E.transmission > 0, he = vt && !!E.anisotropyMap, Pe = Tt && !!E.clearcoatMap, Be = Tt && !!E.clearcoatNormalMap, Ue = Tt && !!E.clearcoatRoughnessMap, q = Kt && !!E.iridescenceMap, de = Kt && !!E.iridescenceThicknessMap, ce = z && !!E.sheenColorMap, je = z && !!E.sheenRoughnessMap, Xe = !!E.specularMap, Ve = !!E.specularColorMap, ke = !!E.specularIntensityMap, rt = k && !!E.transmissionMap, bt = k && !!E.thicknessMap, wt = !!E.gradientMap, Z = !!E.alphaMap, ue = E.alphaTest > 0, fe = !!E.alphaHash, We = !!E.extensions, Je = !!Y.attributes.uv1, ri = !!Y.attributes.uv2, Ti = !!Y.attributes.uv3;
10844
+ const Ge = n.getRenderTarget(), Qe = H.isInstancedMesh === !0, ht = !!E.map, Mt = !!E.matcap, st = !!L, W = !!E.aoMap, Fe = !!E.lightMap, Ae = !!E.bumpMap, Le = !!E.normalMap, Ce = !!E.displacementMap, tt = !!E.emissiveMap, qe = !!E.metalnessMap, Ye = !!E.roughnessMap, vt = E.anisotropy > 0, Tt = E.clearcoat > 0, Kt = E.iridescence > 0, z = E.sheen > 0, k = E.transmission > 0, he = vt && !!E.anisotropyMap, Pe = Tt && !!E.clearcoatMap, Be = Tt && !!E.clearcoatNormalMap, Ue = Tt && !!E.clearcoatRoughnessMap, q = Kt && !!E.iridescenceMap, de = Kt && !!E.iridescenceThicknessMap, ce = z && !!E.sheenColorMap, je = z && !!E.sheenRoughnessMap, Xe = !!E.specularMap, Ve = !!E.specularColorMap, ke = !!E.specularIntensityMap, rt = k && !!E.transmissionMap, bt = k && !!E.thicknessMap, wt = !!E.gradientMap, Z = !!E.alphaMap, ue = E.alphaTest > 0, fe = !!E.alphaHash, We = !!E.extensions, Je = !!Y.attributes.uv1, ri = !!Y.attributes.uv2, Ii = !!Y.attributes.uv3;
10845
10845
  return {
10846
10846
  isWebGL2: u,
10847
10847
  shaderID: ee,
@@ -10928,7 +10928,7 @@ function B5(n, e, t, i, s, r, o) {
10928
10928
  vertexAlphas: E.vertexColors === !0 && !!Y.attributes.color && Y.attributes.color.itemSize === 4,
10929
10929
  vertexUv1s: Je,
10930
10930
  vertexUv2s: ri,
10931
- vertexUv3s: Ti,
10931
+ vertexUv3s: Ii,
10932
10932
  pointsUvs: H.isPoints === !0 && !!Y.attributes.uv && (ht || Z),
10933
10933
  fog: !!V,
10934
10934
  useFog: E.fog === !0,
@@ -11550,8 +11550,8 @@ function W5(n, e, t) {
11550
11550
  setLocked: function(Je) {
11551
11551
  Z = Je;
11552
11552
  },
11553
- setClear: function(Je, ri, Ti, An, $r) {
11554
- $r === !0 && (Je *= An, ri *= An, Ti *= An), ue.set(Je, ri, Ti, An), We.equals(ue) === !1 && (n.clearColor(Je, ri, Ti, An), We.copy(ue));
11553
+ setClear: function(Je, ri, Ii, An, $r) {
11554
+ $r === !0 && (Je *= An, ri *= An, Ii *= An), ue.set(Je, ri, Ii, An), We.equals(ue) === !1 && (n.clearColor(Je, ri, Ii, An), We.copy(ue));
11555
11555
  },
11556
11556
  reset: function() {
11557
11557
  Z = !1, fe = null, We.set(-1, 0, 0, 0);
@@ -11612,7 +11612,7 @@ function W5(n, e, t) {
11612
11612
  };
11613
11613
  }
11614
11614
  function o() {
11615
- let Z = !1, ue = null, fe = null, We = null, Je = null, ri = null, Ti = null, An = null, $r = null;
11615
+ let Z = !1, ue = null, fe = null, We = null, Je = null, ri = null, Ii = null, An = null, $r = null;
11616
11616
  return {
11617
11617
  setTest: function(Li) {
11618
11618
  Z || (Li ? Ge(n.STENCIL_TEST) : Qe(n.STENCIL_TEST));
@@ -11624,7 +11624,7 @@ function W5(n, e, t) {
11624
11624
  (fe !== Li || We !== eo || Je !== $n) && (n.stencilFunc(Li, eo, $n), fe = Li, We = eo, Je = $n);
11625
11625
  },
11626
11626
  setOp: function(Li, eo, $n) {
11627
- (ri !== Li || Ti !== eo || An !== $n) && (n.stencilOp(Li, eo, $n), ri = Li, Ti = eo, An = $n);
11627
+ (ri !== Li || Ii !== eo || An !== $n) && (n.stencilOp(Li, eo, $n), ri = Li, Ii = eo, An = $n);
11628
11628
  },
11629
11629
  setLocked: function(Li) {
11630
11630
  Z = Li;
@@ -11633,7 +11633,7 @@ function W5(n, e, t) {
11633
11633
  $r !== Li && (n.clearStencil(Li), $r = Li);
11634
11634
  },
11635
11635
  reset: function() {
11636
- Z = !1, ue = null, fe = null, We = null, Je = null, ri = null, Ti = null, An = null, $r = null;
11636
+ Z = !1, ue = null, fe = null, We = null, Je = null, ri = null, Ii = null, An = null, $r = null;
11637
11637
  }
11638
11638
  };
11639
11639
  }
@@ -11648,8 +11648,8 @@ function W5(n, e, t) {
11648
11648
  function Ee(Z, ue, fe, We) {
11649
11649
  const Je = new Uint8Array(4), ri = n.createTexture();
11650
11650
  n.bindTexture(Z, ri), n.texParameteri(Z, n.TEXTURE_MIN_FILTER, n.NEAREST), n.texParameteri(Z, n.TEXTURE_MAG_FILTER, n.NEAREST);
11651
- for (let Ti = 0; Ti < fe; Ti++)
11652
- i && (Z === n.TEXTURE_3D || Z === n.TEXTURE_2D_ARRAY) ? n.texImage3D(ue, 0, n.RGBA, 1, 1, We, 0, n.RGBA, n.UNSIGNED_BYTE, Je) : n.texImage2D(ue + Ti, 0, n.RGBA, 1, 1, 0, n.RGBA, n.UNSIGNED_BYTE, Je);
11651
+ for (let Ii = 0; Ii < fe; Ii++)
11652
+ i && (Z === n.TEXTURE_3D || Z === n.TEXTURE_2D_ARRAY) ? n.texImage3D(ue, 0, n.RGBA, 1, 1, We, 0, n.RGBA, n.UNSIGNED_BYTE, Je) : n.texImage2D(ue + Ii, 0, n.RGBA, 1, 1, 0, n.RGBA, n.UNSIGNED_BYTE, Je);
11653
11653
  return ri;
11654
11654
  }
11655
11655
  const Me = {};
@@ -11669,7 +11669,7 @@ function W5(n, e, t) {
11669
11669
  if (fe = m.get(ue), fe === void 0 && (fe = [], m.set(ue, fe)), Z.isWebGLMultipleRenderTargets) {
11670
11670
  const Je = Z.texture;
11671
11671
  if (fe.length !== Je.length || fe[0] !== n.COLOR_ATTACHMENT0) {
11672
- for (let ri = 0, Ti = Je.length; ri < Ti; ri++)
11672
+ for (let ri = 0, Ii = Je.length; ri < Ii; ri++)
11673
11673
  fe[ri] = n.COLOR_ATTACHMENT0 + ri;
11674
11674
  fe.length = Je.length, We = !0;
11675
11675
  }
@@ -11706,7 +11706,7 @@ function W5(n, e, t) {
11706
11706
  [Uk]: n.ONE_MINUS_DST_COLOR,
11707
11707
  [Lk]: n.ONE_MINUS_DST_ALPHA
11708
11708
  };
11709
- function Ae(Z, ue, fe, We, Je, ri, Ti, An) {
11709
+ function Ae(Z, ue, fe, We, Je, ri, Ii, An) {
11710
11710
  if (Z === Ki) {
11711
11711
  g === !0 && (Qe(n.BLEND), g = !1);
11712
11712
  return;
@@ -11753,7 +11753,7 @@ function W5(n, e, t) {
11753
11753
  }
11754
11754
  return;
11755
11755
  }
11756
- Je = Je || ue, ri = ri || fe, Ti = Ti || We, (ue !== y || Je !== M) && (n.blendEquationSeparate(W[ue], W[Je]), y = ue, M = Je), (fe !== _ || We !== C || ri !== I || Ti !== R) && (n.blendFuncSeparate(Fe[fe], Fe[We], Fe[ri], Fe[Ti]), _ = fe, C = We, I = ri, R = Ti), b = Z, E = !1;
11756
+ Je = Je || ue, ri = ri || fe, Ii = Ii || We, (ue !== y || Je !== M) && (n.blendEquationSeparate(W[ue], W[Je]), y = ue, M = Je), (fe !== _ || We !== C || ri !== I || Ii !== R) && (n.blendFuncSeparate(Fe[fe], Fe[We], Fe[ri], Fe[Ii]), _ = fe, C = We, I = ri, R = Ii), b = Z, E = !1;
11757
11757
  }
11758
11758
  function Le(Z, ue) {
11759
11759
  Z.side === bi ? Qe(n.CULL_FACE) : Ge(n.CULL_FACE);
@@ -13173,9 +13173,9 @@ class $l {
13173
13173
  B.removeEventListener("dispose", Je), ri(B);
13174
13174
  }
13175
13175
  function ri(S) {
13176
- Ti(S), qe.remove(S);
13176
+ Ii(S), qe.remove(S);
13177
13177
  }
13178
- function Ti(S) {
13178
+ function Ii(S) {
13179
13179
  const B = qe.get(S).programs;
13180
13180
  B !== void 0 && (B.forEach(function(F) {
13181
13181
  he.releaseProgram(F);
@@ -13205,8 +13205,8 @@ class $l {
13205
13205
  if (Q.isInstancedMesh)
13206
13206
  pt.renderInstances(Ze, it, Q.count);
13207
13207
  else if (F.isInstancedBufferGeometry) {
13208
- const gt = F._maxInstanceCount !== void 0 ? F._maxInstanceCount : 1 / 0, Ii = Math.min(F.instanceCount, gt);
13209
- pt.renderInstances(Ze, it, Ii);
13208
+ const gt = F._maxInstanceCount !== void 0 ? F._maxInstanceCount : 1 / 0, Ri = Math.min(F.instanceCount, gt);
13209
+ pt.renderInstances(Ze, it, Ri);
13210
13210
  } else
13211
13211
  pt.render(Ze, it);
13212
13212
  }, this.compile = function(S, B) {
@@ -13349,23 +13349,23 @@ class $l {
13349
13349
  }
13350
13350
  function WA(S, B, F, U, Q) {
13351
13351
  B.isScene !== !0 && (B = Mt), Ye.resetTextureUnits();
13352
- const oe = B.fog, pe = U.isMeshStandardMaterial ? B.environment : null, ye = I === null ? y.outputColorSpace : I.isXRRenderTarget === !0 ? I.texture.colorSpace : mn, le = (U.isMeshStandardMaterial ? Tt : vt).get(U.envMap || pe), xe = U.vertexColors === !0 && !!F.attributes.color && F.attributes.color.itemSize === 4, De = !!F.attributes.tangent && (!!U.normalMap || U.anisotropy > 0), Oe = !!F.morphAttributes.position, Ze = !!F.morphAttributes.normal, dt = !!F.morphAttributes.color, it = U.toneMapped ? y.toneMapping : Ks, lt = F.morphAttributes.position || F.morphAttributes.normal || F.morphAttributes.color, pt = lt !== void 0 ? lt.length : 0, gt = qe.get(U), Ii = v.state.lights;
13352
+ const oe = B.fog, pe = U.isMeshStandardMaterial ? B.environment : null, ye = I === null ? y.outputColorSpace : I.isXRRenderTarget === !0 ? I.texture.colorSpace : mn, le = (U.isMeshStandardMaterial ? Tt : vt).get(U.envMap || pe), xe = U.vertexColors === !0 && !!F.attributes.color && F.attributes.color.itemSize === 4, De = !!F.attributes.tangent && (!!U.normalMap || U.anisotropy > 0), Oe = !!F.morphAttributes.position, Ze = !!F.morphAttributes.normal, dt = !!F.morphAttributes.color, it = U.toneMapped ? y.toneMapping : Ks, lt = F.morphAttributes.position || F.morphAttributes.normal || F.morphAttributes.color, pt = lt !== void 0 ? lt.length : 0, gt = qe.get(U), Ri = v.state.lights;
13353
13353
  if (ge === !0 && (Ee === !0 || S !== E)) {
13354
13354
  const Xi = S === E && U.id === R;
13355
13355
  q.setState(U, S, Xi);
13356
13356
  }
13357
13357
  let hi = !1;
13358
- U.version === gt.__version ? (gt.needsLights && gt.lightsStateVersion !== Ii.state.version || gt.outputColorSpace !== ye || Q.isInstancedMesh && gt.instancing === !1 || !Q.isInstancedMesh && gt.instancing === !0 || Q.isSkinnedMesh && gt.skinning === !1 || !Q.isSkinnedMesh && gt.skinning === !0 || gt.envMap !== le || U.fog === !0 && gt.fog !== oe || gt.numClippingPlanes !== void 0 && (gt.numClippingPlanes !== q.numPlanes || gt.numIntersection !== q.numIntersection) || gt.vertexAlphas !== xe || gt.vertexTangents !== De || gt.morphTargets !== Oe || gt.morphNormals !== Ze || gt.morphColors !== dt || gt.toneMapping !== it || Le.isWebGL2 === !0 && gt.morphTargetsCount !== pt) && (hi = !0) : (hi = !0, gt.__version = U.version);
13358
+ U.version === gt.__version ? (gt.needsLights && gt.lightsStateVersion !== Ri.state.version || gt.outputColorSpace !== ye || Q.isInstancedMesh && gt.instancing === !1 || !Q.isInstancedMesh && gt.instancing === !0 || Q.isSkinnedMesh && gt.skinning === !1 || !Q.isSkinnedMesh && gt.skinning === !0 || gt.envMap !== le || U.fog === !0 && gt.fog !== oe || gt.numClippingPlanes !== void 0 && (gt.numClippingPlanes !== q.numPlanes || gt.numIntersection !== q.numIntersection) || gt.vertexAlphas !== xe || gt.vertexTangents !== De || gt.morphTargets !== Oe || gt.morphNormals !== Ze || gt.morphColors !== dt || gt.toneMapping !== it || Le.isWebGL2 === !0 && gt.morphTargetsCount !== pt) && (hi = !0) : (hi = !0, gt.__version = U.version);
13359
13359
  let ci = gt.currentProgram;
13360
13360
  hi === !0 && (ci = fa(U, B, Q));
13361
- let Zt = !1, Ri = !1, bs = !1;
13361
+ let Zt = !1, Pi = !1, bs = !1;
13362
13362
  const oi = ci.getUniforms(), qt = gt.uniforms;
13363
- if (Ce.useProgram(ci.program) && (Zt = !0, Ri = !0, bs = !0), U.id !== R && (R = U.id, Ri = !0), Zt || E !== S) {
13363
+ if (Ce.useProgram(ci.program) && (Zt = !0, Pi = !0, bs = !0), U.id !== R && (R = U.id, Pi = !0), Zt || E !== S) {
13364
13364
  if (oi.setValue(W, "projectionMatrix", S.projectionMatrix), Le.logarithmicDepthBuffer && oi.setValue(
13365
13365
  W,
13366
13366
  "logDepthBufFC",
13367
13367
  2 / (Math.log(S.far + 1) / Math.LN2)
13368
- ), E !== S && (E = S, Ri = !0, bs = !0), U.isShaderMaterial || U.isMeshPhongMaterial || U.isMeshToonMaterial || U.isMeshStandardMaterial || U.envMap) {
13368
+ ), E !== S && (E = S, Pi = !0, bs = !0), U.isShaderMaterial || U.isMeshPhongMaterial || U.isMeshToonMaterial || U.isMeshStandardMaterial || U.envMap) {
13369
13369
  const Xi = oi.map.cameraPosition;
13370
13370
  Xi !== void 0 && Xi.setValue(
13371
13371
  W,
@@ -13380,7 +13380,7 @@ class $l {
13380
13380
  Xi && (Le.floatVertexTextures ? (Xi.boneTexture === null && Xi.computeBoneTexture(), oi.setValue(W, "boneTexture", Xi.boneTexture, Ye), oi.setValue(W, "boneTextureSize", Xi.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
13381
13381
  }
13382
13382
  const fi = F.morphAttributes;
13383
- if ((fi.position !== void 0 || fi.normal !== void 0 || fi.color !== void 0 && Le.isWebGL2 === !0) && je.update(Q, F, ci), (Ri || gt.receiveShadow !== Q.receiveShadow) && (gt.receiveShadow = Q.receiveShadow, oi.setValue(W, "receiveShadow", Q.receiveShadow)), U.isMeshGouraudMaterial && U.envMap !== null && (qt.envMap.value = le, qt.flipEnvMap.value = le.isCubeTexture && le.isRenderTargetTexture === !1 ? -1 : 1), Ri && (oi.setValue(W, "toneMappingExposure", y.toneMappingExposure), gt.needsLights && Px(qt, bs), oe && U.fog === !0 && Pe.refreshFogUniforms(qt, oe), Pe.refreshMaterialUniforms(qt, U, L, N, Me), Oy.upload(W, gt.uniformsList, qt, Ye)), U.isShaderMaterial && U.uniformsNeedUpdate === !0 && (Oy.upload(W, gt.uniformsList, qt, Ye), U.uniformsNeedUpdate = !1), U.isSpriteMaterial && oi.setValue(W, "center", Q.center), oi.setValue(W, "modelViewMatrix", Q.modelViewMatrix), oi.setValue(W, "normalMatrix", Q.normalMatrix), oi.setValue(W, "modelMatrix", Q.matrixWorld), U.isShaderMaterial || U.isRawShaderMaterial) {
13383
+ if ((fi.position !== void 0 || fi.normal !== void 0 || fi.color !== void 0 && Le.isWebGL2 === !0) && je.update(Q, F, ci), (Pi || gt.receiveShadow !== Q.receiveShadow) && (gt.receiveShadow = Q.receiveShadow, oi.setValue(W, "receiveShadow", Q.receiveShadow)), U.isMeshGouraudMaterial && U.envMap !== null && (qt.envMap.value = le, qt.flipEnvMap.value = le.isCubeTexture && le.isRenderTargetTexture === !1 ? -1 : 1), Pi && (oi.setValue(W, "toneMappingExposure", y.toneMappingExposure), gt.needsLights && Px(qt, bs), oe && U.fog === !0 && Pe.refreshFogUniforms(qt, oe), Pe.refreshMaterialUniforms(qt, U, L, N, Me), Oy.upload(W, gt.uniformsList, qt, Ye)), U.isShaderMaterial && U.uniformsNeedUpdate === !0 && (Oy.upload(W, gt.uniformsList, qt, Ye), U.uniformsNeedUpdate = !1), U.isSpriteMaterial && oi.setValue(W, "center", Q.center), oi.setValue(W, "modelViewMatrix", Q.modelViewMatrix), oi.setValue(W, "normalMatrix", Q.normalMatrix), oi.setValue(W, "modelMatrix", Q.matrixWorld), U.isShaderMaterial || U.isRawShaderMaterial) {
13384
13384
  const Xi = U.uniformsGroups;
13385
13385
  for (let Ya = 0, to = Xi.length; Ya < to; Ya++)
13386
13386
  if (Le.isWebGL2) {
@@ -22295,7 +22295,7 @@ function Ile(n, e) {
22295
22295
  function E2(n, e, t = !0, i = !1) {
22296
22296
  const s = mt(e), r = mt(n);
22297
22297
  if (i) {
22298
- if (xr(n, Di(e)), t) {
22298
+ if (xr(n, Ti(e)), t) {
22299
22299
  const o = r.sub(M2(n));
22300
22300
  n.lookAt(o);
22301
22301
  }
@@ -22323,7 +22323,7 @@ function mg(n, e, t, i) {
22323
22323
  s.set(e, t, i), Tn(n, s);
22324
22324
  }
22325
22325
  const C0 = new Na(() => new Se(), 100), au = new Se(), gw = new Se();
22326
- function Di(n, e = null) {
22326
+ function Ti(n, e = null) {
22327
22327
  if (!n)
22328
22328
  return C0.get().identity();
22329
22329
  const t = e ?? C0.get();
@@ -22357,11 +22357,11 @@ function VC(n, e) {
22357
22357
  }
22358
22358
  const rj = new w(), LP = new Se();
22359
22359
  function Rle(n) {
22360
- return Di(n, LP), rj.set(0, 0, 1).applyQuaternion(LP);
22360
+ return Ti(n, LP), rj.set(0, 0, 1).applyQuaternion(LP);
22361
22361
  }
22362
22362
  const oj = new Na(() => new w(), 100), FP = new Se();
22363
22363
  function M2(n, e) {
22364
- return e || (e = oj.get().set(0, 0, 1)), Di(n, FP), e.applyQuaternion(FP);
22364
+ return e || (e = oj.get().set(0, 0, 1)), Ti(n, FP), e.applyQuaternion(FP);
22365
22365
  }
22366
22366
  const UP = new pn(), NP = new pn(), aj = new w();
22367
22367
  function cj(n) {
@@ -29783,7 +29783,7 @@ Object.getOwnPropertyDescriptor(_e.prototype, "worldPosition") || Object.defineP
29783
29783
  });
29784
29784
  Object.getOwnPropertyDescriptor(_e.prototype, "worldQuaternion") || Object.defineProperty(_e.prototype, "worldQuaternion", {
29785
29785
  get: function() {
29786
- return this instanceof DM ? Di(this.object) : Di(this);
29786
+ return this instanceof DM ? Ti(this.object) : Ti(this);
29787
29787
  },
29788
29788
  set: function(n) {
29789
29789
  xr(this, n);
@@ -29807,17 +29807,17 @@ Object.getOwnPropertyDescriptor(_e.prototype, "worldScale") || Object.defineProp
29807
29807
  });
29808
29808
  Object.getOwnPropertyDescriptor(_e.prototype, "worldForward") || Object.defineProperty(_e.prototype, "worldForward", {
29809
29809
  get: function() {
29810
- return vM().set(0, 0, 1).applyQuaternion(Di(this));
29810
+ return vM().set(0, 0, 1).applyQuaternion(Ti(this));
29811
29811
  }
29812
29812
  });
29813
29813
  Object.getOwnPropertyDescriptor(_e.prototype, "worldRight") || Object.defineProperty(_e.prototype, "worldRight", {
29814
29814
  get: function() {
29815
- return vM().set(1, 0, 0).applyQuaternion(Di(this));
29815
+ return vM().set(1, 0, 0).applyQuaternion(Ti(this));
29816
29816
  }
29817
29817
  });
29818
29818
  Object.getOwnPropertyDescriptor(_e.prototype, "worldUp") || Object.defineProperty(_e.prototype, "worldUp", {
29819
29819
  get: function() {
29820
- return vM().set(0, 1, 0).applyQuaternion(Di(this));
29820
+ return vM().set(0, 1, 0).applyQuaternion(Ti(this));
29821
29821
  }
29822
29822
  });
29823
29823
  M9(_e);
@@ -30479,7 +30479,7 @@ const FF = Symbol("disposed");
30479
30479
  function Gle(n) {
30480
30480
  return n[FF] === !0;
30481
30481
  }
30482
- function Pi(n) {
30482
+ function Bi(n) {
30483
30483
  var e;
30484
30484
  if (n) {
30485
30485
  if (n[kF] === !1) {
@@ -30487,33 +30487,33 @@ function Pi(n) {
30487
30487
  return;
30488
30488
  }
30489
30489
  if (n[FF] = !0, n instanceof br)
30490
- Pi(n.environment), Pi(n.background), Pi(n.customDepthMaterial), Pi(n.customDistanceMaterial);
30490
+ Bi(n.environment), Bi(n.background), Bi(n.customDepthMaterial), Bi(n.customDistanceMaterial);
30491
30491
  else if (n instanceof eh)
30492
- Pi(n.geometry), Pi(n.material), Pi(n.skeleton), Pi(n.bindMatrix), Pi(n.bindMatrixInverse), Pi(n.customDepthMaterial), Pi(n.customDistanceMaterial), n.geometry = null, n.material = null;
30492
+ Bi(n.geometry), Bi(n.material), Bi(n.skeleton), Bi(n.bindMatrix), Bi(n.bindMatrixInverse), Bi(n.customDepthMaterial), Bi(n.customDistanceMaterial), n.geometry = null, n.material = null;
30493
30493
  else if (n instanceof me)
30494
- Pi(n.geometry), Pi(n.material), Pi(n.customDepthMaterial), Pi(n.customDistanceMaterial), n.geometry = null, n.material = null;
30494
+ Bi(n.geometry), Bi(n.material), Bi(n.customDepthMaterial), Bi(n.customDistanceMaterial), n.geometry = null, n.material = null;
30495
30495
  else if (n instanceof At) {
30496
30496
  fd(n);
30497
30497
  for (const t of Object.keys(n.attributes)) {
30498
30498
  const i = n.attributes[t];
30499
- Pi(i);
30499
+ Bi(i);
30500
30500
  }
30501
30501
  } else if (n instanceof $e || n instanceof Gc)
30502
30502
  lu && console.warn("BufferAttribute dispose not supported", n.count);
30503
30503
  else if (n instanceof Array)
30504
30504
  for (const t of n)
30505
- t instanceof Ft && Pi(t);
30505
+ t instanceof Ft && Bi(t);
30506
30506
  else if (n instanceof Ft) {
30507
30507
  fd(n);
30508
30508
  for (const i of Object.keys(n)) {
30509
30509
  const s = n[i];
30510
- s instanceof Lt && (Pi(s), n[i] = null);
30510
+ s instanceof Lt && (Bi(s), n[i] = null);
30511
30511
  }
30512
30512
  const t = n.uniforms;
30513
30513
  if (t)
30514
30514
  for (const i of Object.keys(t)) {
30515
30515
  const s = t[i];
30516
- s instanceof Lt ? (Pi(s), t[i] = null) : s instanceof we && (Pi(s.value), s.value = null);
30516
+ s instanceof Lt ? (Bi(s), t[i] = null) : s instanceof we && (Bi(s.value), s.value = null);
30517
30517
  }
30518
30518
  } else
30519
30519
  n instanceof Lt ? (fd(n), fd(n.source), ((e = n.source) == null ? void 0 : e.data) instanceof ImageBitmap && fd(n.source.data)) : n instanceof Ff ? (fd(n.boneTexture), n.boneTexture = null) : n instanceof Xg || !(n instanceof _e) && lu && console.warn("Unknown object type", n);
@@ -30577,7 +30577,7 @@ function B0(n, e, t, i) {
30577
30577
  } else if (e && s.has(e)) {
30578
30578
  s.delete(e);
30579
30579
  let r = t[lm] || 0;
30580
- r > 0 && (r -= 1, t[lm] = r), lu && console.warn(`🔴 Removed user of "${t.type}"`, e, t, r, "users:", s), r <= 0 && (Im.isLoading(t) || (u_ && console.warn(`🔴 Removed all user of "${t.type}"`, t), OF() && Pi(t)));
30580
+ r > 0 && (r -= 1, t[lm] = r), lu && console.warn(`🔴 Removed user of "${t.type}"`, e, t, r, "users:", s), r <= 0 && (Im.isLoading(t) || (u_ && console.warn(`🔴 Removed all user of "${t.type}"`, t), OF() && Bi(t)));
30581
30581
  }
30582
30582
  t[n] = s;
30583
30583
  }
@@ -30653,7 +30653,7 @@ function zF(n, e = !0, t = !1, i = !0, s) {
30653
30653
  return;
30654
30654
  }
30655
30655
  const o = n;
30656
- if (p6(o, !0), t && Pi(o), c6(o), Hy && console.log(o), e && o.children)
30656
+ if (p6(o, !0), t && Bi(o), c6(o), Hy && console.log(o), e && o.children)
30657
30657
  for (const c of o.children)
30658
30658
  zF(c, e, t, !1, s);
30659
30659
  const a = o.userData.components;
@@ -40385,25 +40385,25 @@ class L0 extends sM {
40385
40385
  for (le >>= 1, xe = le, le >>= 1; le >= 1; ) {
40386
40386
  De = 0;
40387
40387
  const Oe = De + Q * (U - xe), Ze = Q * le, dt = Q * xe, it = F * le, lt = F * xe;
40388
- let pt, gt, Ii, hi;
40388
+ let pt, gt, Ri, hi;
40389
40389
  for (; De <= Oe; De += dt) {
40390
40390
  let ci = De;
40391
40391
  const Zt = De + F * (B - xe);
40392
40392
  for (; ci <= Zt; ci += lt) {
40393
- const Ri = ci + it, bs = ci + Ze, oi = bs + it;
40394
- pe ? (Ge(P[ci + S], P[bs + S]), pt = Me.a, Ii = Me.b, Ge(P[Ri + S], P[oi + S]), gt = Me.a, hi = Me.b, Ge(pt, gt), P[ci + S] = Me.a, P[Ri + S] = Me.b, Ge(Ii, hi), P[bs + S] = Me.a, P[oi + S] = Me.b) : (Qe(P[ci + S], P[bs + S]), pt = Me.a, Ii = Me.b, Qe(P[Ri + S], P[oi + S]), gt = Me.a, hi = Me.b, Qe(pt, gt), P[ci + S] = Me.a, P[Ri + S] = Me.b, Qe(Ii, hi), P[bs + S] = Me.a, P[oi + S] = Me.b);
40393
+ const Pi = ci + it, bs = ci + Ze, oi = bs + it;
40394
+ pe ? (Ge(P[ci + S], P[bs + S]), pt = Me.a, Ri = Me.b, Ge(P[Pi + S], P[oi + S]), gt = Me.a, hi = Me.b, Ge(pt, gt), P[ci + S] = Me.a, P[Pi + S] = Me.b, Ge(Ri, hi), P[bs + S] = Me.a, P[oi + S] = Me.b) : (Qe(P[ci + S], P[bs + S]), pt = Me.a, Ri = Me.b, Qe(P[Pi + S], P[oi + S]), gt = Me.a, hi = Me.b, Qe(pt, gt), P[ci + S] = Me.a, P[Pi + S] = Me.b, Qe(Ri, hi), P[bs + S] = Me.a, P[oi + S] = Me.b);
40395
40395
  }
40396
40396
  if (B & le) {
40397
- const Ri = ci + Ze;
40398
- pe ? Ge(P[ci + S], P[Ri + S]) : Qe(P[ci + S], P[Ri + S]), pt = Me.a, P[Ri + S] = Me.b, P[ci + S] = pt;
40397
+ const Pi = ci + Ze;
40398
+ pe ? Ge(P[ci + S], P[Pi + S]) : Qe(P[ci + S], P[Pi + S]), pt = Me.a, P[Pi + S] = Me.b, P[ci + S] = pt;
40399
40399
  }
40400
40400
  }
40401
40401
  if (U & le) {
40402
40402
  let ci = De;
40403
40403
  const Zt = De + F * (B - xe);
40404
40404
  for (; ci <= Zt; ci += lt) {
40405
- const Ri = ci + it;
40406
- pe ? Ge(P[ci + S], P[Ri + S]) : Qe(P[ci + S], P[Ri + S]), pt = Me.a, P[Ri + S] = Me.b, P[ci + S] = pt;
40405
+ const Pi = ci + it;
40406
+ pe ? Ge(P[ci + S], P[Pi + S]) : Qe(P[ci + S], P[Pi + S]), pt = Me.a, P[Pi + S] = Me.b, P[ci + S] = pt;
40407
40407
  }
40408
40408
  }
40409
40409
  xe = le, le >>= 1;
@@ -40498,12 +40498,12 @@ class L0 extends sM {
40498
40498
  }
40499
40499
  function Ce(P, S, B, F, U, Q) {
40500
40500
  let oe = new DataView(Q.buffer);
40501
- const pe = B[P.idx[0]].width, ye = B[P.idx[0]].height, le = 3, xe = Math.floor(pe / 8), De = Math.ceil(pe / 8), Oe = Math.ceil(ye / 8), Ze = pe - (De - 1) * 8, dt = ye - (Oe - 1) * 8, it = { value: 0 }, lt = new Array(le), pt = new Array(le), gt = new Array(le), Ii = new Array(le), hi = new Array(le);
40501
+ const pe = B[P.idx[0]].width, ye = B[P.idx[0]].height, le = 3, xe = Math.floor(pe / 8), De = Math.ceil(pe / 8), Oe = Math.ceil(ye / 8), Ze = pe - (De - 1) * 8, dt = ye - (Oe - 1) * 8, it = { value: 0 }, lt = new Array(le), pt = new Array(le), gt = new Array(le), Ri = new Array(le), hi = new Array(le);
40502
40502
  for (let Zt = 0; Zt < le; ++Zt)
40503
- hi[Zt] = S[P.idx[Zt]], lt[Zt] = Zt < 1 ? 0 : lt[Zt - 1] + De * Oe, pt[Zt] = new Float32Array(64), gt[Zt] = new Uint16Array(64), Ii[Zt] = new Uint16Array(De * 64);
40503
+ hi[Zt] = S[P.idx[Zt]], lt[Zt] = Zt < 1 ? 0 : lt[Zt - 1] + De * Oe, pt[Zt] = new Float32Array(64), gt[Zt] = new Uint16Array(64), Ri[Zt] = new Uint16Array(De * 64);
40504
40504
  for (let Zt = 0; Zt < Oe; ++Zt) {
40505
- let Ri = 8;
40506
- Zt == Oe - 1 && (Ri = dt);
40505
+ let Pi = 8;
40506
+ Zt == Oe - 1 && (Pi = dt);
40507
40507
  let bs = 8;
40508
40508
  for (let qt = 0; qt < De; ++qt) {
40509
40509
  qt == De - 1 && (bs = Ze);
@@ -40511,23 +40511,23 @@ class L0 extends sM {
40511
40511
  gt[fi].fill(0), gt[fi][0] = U[lt[fi]++], tt(it, F, gt[fi]), qe(gt[fi], pt[fi]), Ye(pt[fi]);
40512
40512
  vt(pt);
40513
40513
  for (let fi = 0; fi < le; ++fi)
40514
- Tt(pt[fi], Ii[fi], qt * 64);
40514
+ Tt(pt[fi], Ri[fi], qt * 64);
40515
40515
  }
40516
40516
  let oi = 0;
40517
40517
  for (let qt = 0; qt < le; ++qt) {
40518
40518
  const fi = B[P.idx[qt]].type;
40519
- for (let Xi = 8 * Zt; Xi < 8 * Zt + Ri; ++Xi) {
40519
+ for (let Xi = 8 * Zt; Xi < 8 * Zt + Pi; ++Xi) {
40520
40520
  oi = hi[qt][Xi];
40521
40521
  for (let Ya = 0; Ya < xe; ++Ya) {
40522
40522
  const to = Ya * 64 + (Xi & 7) * 8;
40523
- oe.setUint16(oi + 0 * 2 * fi, Ii[qt][to + 0], !0), oe.setUint16(oi + 1 * 2 * fi, Ii[qt][to + 1], !0), oe.setUint16(oi + 2 * 2 * fi, Ii[qt][to + 2], !0), oe.setUint16(oi + 3 * 2 * fi, Ii[qt][to + 3], !0), oe.setUint16(oi + 4 * 2 * fi, Ii[qt][to + 4], !0), oe.setUint16(oi + 5 * 2 * fi, Ii[qt][to + 5], !0), oe.setUint16(oi + 6 * 2 * fi, Ii[qt][to + 6], !0), oe.setUint16(oi + 7 * 2 * fi, Ii[qt][to + 7], !0), oi += 8 * 2 * fi;
40523
+ oe.setUint16(oi + 0 * 2 * fi, Ri[qt][to + 0], !0), oe.setUint16(oi + 1 * 2 * fi, Ri[qt][to + 1], !0), oe.setUint16(oi + 2 * 2 * fi, Ri[qt][to + 2], !0), oe.setUint16(oi + 3 * 2 * fi, Ri[qt][to + 3], !0), oe.setUint16(oi + 4 * 2 * fi, Ri[qt][to + 4], !0), oe.setUint16(oi + 5 * 2 * fi, Ri[qt][to + 5], !0), oe.setUint16(oi + 6 * 2 * fi, Ri[qt][to + 6], !0), oe.setUint16(oi + 7 * 2 * fi, Ri[qt][to + 7], !0), oi += 8 * 2 * fi;
40524
40524
  }
40525
40525
  }
40526
40526
  if (xe != De)
40527
- for (let Xi = 8 * Zt; Xi < 8 * Zt + Ri; ++Xi) {
40527
+ for (let Xi = 8 * Zt; Xi < 8 * Zt + Pi; ++Xi) {
40528
40528
  const Ya = hi[qt][Xi] + 8 * xe * 2 * fi, to = xe * 64 + (Xi & 7) * 8;
40529
40529
  for (let ph = 0; ph < bs; ++ph)
40530
- oe.setUint16(Ya + ph * 2 * fi, Ii[qt][to + ph], !0);
40530
+ oe.setUint16(Ya + ph * 2 * fi, Ri[qt][to + ph], !0);
40531
40531
  }
40532
40532
  }
40533
40533
  }
@@ -40535,14 +40535,14 @@ class L0 extends sM {
40535
40535
  oe = new DataView(Q.buffer);
40536
40536
  for (let Zt = 0; Zt < le; ++Zt) {
40537
40537
  B[P.idx[Zt]].decoded = !0;
40538
- const Ri = B[P.idx[Zt]].type;
40538
+ const Pi = B[P.idx[Zt]].type;
40539
40539
  if (B[Zt].type == 2)
40540
40540
  for (let bs = 0; bs < ye; ++bs) {
40541
40541
  const oi = hi[Zt][bs];
40542
40542
  for (let qt = 0; qt < pe; ++qt)
40543
- ci[qt] = oe.getUint16(oi + qt * 2 * Ri, !0);
40543
+ ci[qt] = oe.getUint16(oi + qt * 2 * Pi, !0);
40544
40544
  for (let qt = 0; qt < pe; ++qt)
40545
- oe.setFloat32(oi + qt * 2 * Ri, ue(ci[qt]), !0);
40545
+ oe.setFloat32(oi + qt * 2 * Pi, ue(ci[qt]), !0);
40546
40546
  }
40547
40547
  }
40548
40548
  }
@@ -40669,10 +40669,10 @@ class L0 extends sM {
40669
40669
  const Q = new Array();
40670
40670
  let oe = fe(S, B) - 2;
40671
40671
  for (; oe > 0; ) {
40672
- const it = q(S.buffer, B), lt = rt(S, B), pt = lt >> 2 & 3, gt = (lt >> 4) - 1, Ii = new Int8Array([gt])[0], hi = rt(S, B);
40672
+ const it = q(S.buffer, B), lt = rt(S, B), pt = lt >> 2 & 3, gt = (lt >> 4) - 1, Ri = new Int8Array([gt])[0], hi = rt(S, B);
40673
40673
  Q.push({
40674
40674
  name: it,
40675
- index: Ii,
40675
+ index: Ri,
40676
40676
  type: hi,
40677
40677
  compression: pt
40678
40678
  }), oe -= it.length + 3;
@@ -40729,7 +40729,7 @@ class L0 extends sM {
40729
40729
  switch (lt.compression) {
40730
40730
  case 2:
40731
40731
  let pt = 0, gt = 0;
40732
- for (let Ii = 0; Ii < P.lines; ++Ii) {
40732
+ for (let Ri = 0; Ri < P.lines; ++Ri) {
40733
40733
  let hi = dt[it][pt];
40734
40734
  for (let ci = 0; ci < lt.width; ++ci) {
40735
40735
  for (let Zt = 0; Zt < 2 * lt.type; ++Zt)
@@ -40828,7 +40828,7 @@ class L0 extends sM {
40828
40828
  const B = wt(P, S), F = wt(P, S), U = wt(P, S), Q = wt(P, S), oe = wt(P, S), pe = wt(P, S), ye = wt(P, S), le = wt(P, S);
40829
40829
  return { redX: B, redY: F, greenX: U, greenY: Q, blueX: oe, blueY: pe, whiteX: ye, whiteY: le };
40830
40830
  }
40831
- function Ti(P, S) {
40831
+ function Ii(P, S) {
40832
40832
  const B = [
40833
40833
  "NO_COMPRESSION",
40834
40834
  "RLE_COMPRESSION",
@@ -40869,7 +40869,7 @@ class L0 extends sM {
40869
40869
  if (F === "chromaticities")
40870
40870
  return ri(P, B);
40871
40871
  if (F === "compression")
40872
- return Ti(P, B);
40872
+ return Ii(P, B);
40873
40873
  if (F === "box2i")
40874
40874
  return An(P, B);
40875
40875
  if (F === "lineOrder")
@@ -42555,7 +42555,7 @@ let Mu = (nn = class {
42555
42555
  nn._worldPositionBuffer.set(e, t, i), this.worldPosition = nn._worldPositionBuffer;
42556
42556
  }
42557
42557
  get worldQuaternion() {
42558
- return this._worldQuaternion || (this._worldQuaternion = new Se()), Di(this.gameObject, this._worldQuaternion);
42558
+ return this._worldQuaternion || (this._worldQuaternion = new Se()), Ti(this.gameObject, this._worldQuaternion);
42559
42559
  }
42560
42560
  set worldQuaternion(e) {
42561
42561
  xr(this.gameObject, e);
@@ -61412,7 +61412,7 @@ const Xn = class extends Ie {
61412
61412
  }
61413
61413
  getWristQuaternion() {
61414
61414
  const t = this.wrist;
61415
- return t ? (this._wristQuaternion || (this._wristQuaternion = new Se()), Di(t).multiply(this._wristQuaternion.setFromEuler(new pn(-Math.PI / 4, 0, 0)))) : null;
61415
+ return t ? (this._wristQuaternion || (this._wristQuaternion = new Se()), Ti(t).multiply(this._wristQuaternion.setFromEuler(new pn(-Math.PI / 4, 0, 0)))) : null;
61416
61416
  }
61417
61417
  get selectionDown() {
61418
61418
  return this._selectionPressed && !this._selectionPressedLastFrame;
@@ -61508,7 +61508,7 @@ const Xn = class extends Ie {
61508
61508
  for (const r of t)
61509
61509
  r(this);
61510
61510
  let i = 1;
61511
- this.type === 0 ? i = this.context.time.deltaTime / 0.1 : this.isUsingHands && this.handPointerModel.pinched && (i = this.context.time.deltaTime / 0.3), this.rayRotation.slerp(Di(this.controller), this.useSmoothing ? i : 1);
61511
+ this.type === 0 ? i = this.context.time.deltaTime / 0.1 : this.isUsingHands && this.handPointerModel.pinched && (i = this.context.time.deltaTime / 0.3), this.rayRotation.slerp(Ti(this.controller), this.useSmoothing ? i : 1);
61512
61512
  const s = mt(this.controller);
61513
61513
  this.isUsingHands && this.handPointerModel.cursorObject && (this.handPointerModel.cursorObject.visible = !1), this.enableRaycasts ? (this.raycastLine && this.raycastUpdate(this.raycastLine, s), this.lastHit = this.updateLastHit(), this.grabbed && this.grabbed.update()) : this.raycastLine && (this.raycastLine.visible = !1), this._selectionPressedLastFrame = this._selectionPressed, this.selectStartCallback && this.selectStartCallback();
61514
61514
  }
@@ -61791,7 +61791,7 @@ const qs = class {
61791
61791
  const u = () => a ? this.lastControllerWorldPos.clone() : o.point.clone();
61792
61792
  this.grabDistance = u().distanceTo(this.lastControllerWorldPos), this.totalChangeAlongDirection = 0, this.localPositionOffsetToGrab = this.selected.worldToLocal(u());
61793
61793
  const d = e.isUsingHands && a ? this.controller.getWristQuaternion().clone() : e.rayRotation.clone();
61794
- Di(this.selected, this.localQuaternionToGrab).premultiply(d.invert());
61794
+ Ti(this.selected, this.localQuaternionToGrab).premultiply(d.invert());
61795
61795
  const f = this.controller.webXR.Rig;
61796
61796
  return f && this.rigPositionLastFrame.copy(mt(f)), yr.Add(e.context, this.selected), qs.Register(this), this.sync && (this.sync.fastMode = !0), (m = qs.Events.DidTake) == null || m.forEach((A) => A(this, c)), this;
61797
61797
  }
@@ -64829,7 +64829,7 @@ const V3 = (qS = class extends Ie {
64829
64829
  if (r.length() < 0.1)
64830
64830
  return;
64831
64831
  const o = V3.forward;
64832
- if (o.set(0, 0, 1), o.applyQuaternion(Di(this.head)), o.dot(r) > 0.45)
64832
+ if (o.set(0, 0, 1), o.applyQuaternion(Ti(this.head)), o.dot(r) > 0.45)
64833
64833
  for (let c = 0; c < t.length; c++)
64834
64834
  t[c].lookAt(this.currentTargetPoint);
64835
64835
  }
@@ -66392,7 +66392,7 @@ class $f extends Ie {
66392
66392
  *moveToTarget() {
66393
66393
  if (!this.target || !this.object)
66394
66394
  return;
66395
- const t = mt(this.object).clone(), i = mt(this.target).clone(), s = Di(this.object).clone(), r = Di(this.target).clone(), o = hs(this.object).clone(), a = hs(this.target).clone(), c = t.distanceTo(i), l = s.angleTo(r), u = o.distanceTo(a);
66395
+ const t = mt(this.object).clone(), i = mt(this.target).clone(), s = Ti(this.object).clone(), r = Ti(this.target).clone(), o = hs(this.object).clone(), a = hs(this.target).clone(), c = t.distanceTo(i), l = s.angleTo(r), u = o.distanceTo(a);
66396
66396
  if (c < 0.01 && l < 0.01 && u < 0.01) {
66397
66397
  Tn(this.object, i), xr(this.object, r), VC(this.object, a), this.coroutine = null;
66398
66398
  return;
@@ -69711,7 +69711,7 @@ const qn = (Id = class extends Ie {
69711
69711
  }
69712
69712
  }
69713
69713
  captureStateBeforeXR() {
69714
- this.context.mainCamera && (this._originalCameraPosition.copy(mt(this.context.mainCamera)), this._originalCameraRotation.copy(Di(this.context.mainCamera)), this._originalCameraParent = this.context.mainCamera.parent), this.Rig && (this._originalXRRigParent = this.Rig.parent, this._originalXRRigPosition.copy(this.Rig.position), this._originalXRRigRotation.copy(this.Rig.quaternion));
69714
+ this.context.mainCamera && (this._originalCameraPosition.copy(mt(this.context.mainCamera)), this._originalCameraRotation.copy(Ti(this.context.mainCamera)), this._originalCameraParent = this.context.mainCamera.parent), this.Rig && (this._originalXRRigParent = this.Rig.parent, this._originalXRRigPosition.copy(this.Rig.position), this._originalXRRigRotation.copy(this.Rig.quaternion));
69715
69715
  }
69716
69716
  ensureRig() {
69717
69717
  if (!this.rig || NM(this.rig)) {
@@ -73841,7 +73841,7 @@ class hp extends Ie {
73841
73841
  update() {
73842
73842
  if (!this.from)
73843
73843
  return;
73844
- var t = mt(this.from), i = Di(this.from);
73844
+ var t = mt(this.from), i = Ti(this.from);
73845
73845
  this.offset.copy(this.positionOffset);
73846
73846
  const s = this.offset.length();
73847
73847
  if (this.referenceSpace && this.offset.transformDirection(this.referenceSpace.matrixWorld).multiplyScalar(s), t.add(this.offset), this.levelPosition && this.referenceSpace) {
@@ -79162,7 +79162,7 @@ const a0 = class extends Ie {
79162
79162
  this._cameraScale = a.x;
79163
79163
  }
79164
79164
  const i = !this.worldspace, s = this.gameObject;
79165
- if (Di(s, this.__worldQuaternion), this._worldQuaternionInverted.copy(this.__worldQuaternion).invert(), hs(this.gameObject, this._worldScale), i && this._container && ((r = this.gameObject) != null && r.parent)) {
79165
+ if (Ti(s, this.__worldQuaternion), this._worldQuaternionInverted.copy(this.__worldQuaternion).invert(), hs(this.gameObject, this._worldScale), i && this._container && ((r = this.gameObject) != null && r.parent)) {
79166
79166
  const a = Sz(this, s1);
79167
79167
  this._container.matrix.makeScale(a.x, a.y, a.z), this._container.matrix.makeRotationFromQuaternion(this.__worldQuaternion), this._container.matrix.setPosition(this.worldPos), this._container.matrix.scale(this.gameObject.scale);
79168
79168
  }
@@ -80974,7 +80974,7 @@ function qoe(n) {
80974
80974
  }
80975
80975
  async function Xoe(n) {
80976
80976
  const e = await n;
80977
- LF(e, !0), Pi(e);
80977
+ LF(e, !0), Bi(e);
80978
80978
  }
80979
80979
  function Yoe(n, e) {
80980
80980
  const t = Iz();
@@ -82507,7 +82507,7 @@ const Oz = (ZS = class extends Ie {
82507
82507
  this.positionAxes & um.X && (s.x = Ke.lerp(s.x, t.x, i)), this.positionAxes & um.Y && (s.y = Ke.lerp(s.y, t.y, i)), this.positionAxes & um.Z && (s.z = Ke.lerp(s.z, t.z, i)), this.worldPosition = s;
82508
82508
  }
82509
82509
  if (this.rotateFactor > 0) {
82510
- const t = Di(this.target);
82510
+ const t = Ti(this.target);
82511
82511
  this.flipForward && t.premultiply(Oz._invertForward);
82512
82512
  const i = this._firstUpdate || e ? 1 : Ke.clamp01(this.context.time.deltaTime * this.rotateFactor);
82513
82513
  this.worldQuaternion = this.worldQuaternion.slerp(t, i);
@@ -83509,7 +83509,7 @@ const a1 = (eC = class extends Ie {
83509
83509
  if (!this.context.connection.isConnected || this.context.connection.connectionId === null)
83510
83510
  return;
83511
83511
  this._model === null && (this._model = new Nae(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
83512
- const t = mt(e), i = Di(e);
83512
+ const t = mt(e), i = Ti(e);
83513
83513
  (t.distanceTo(this._lastWorldPosition) > 1e-3 || i.angleTo(this._lastWorldQuaternion) > 0.01) && (this._needsUpdate = !0), this._lastWorldPosition.copy(t), this._lastWorldQuaternion.copy(i), !((!this._needsUpdate || this.context.time.frameCount % 2 !== 0) && !(this.context.time.realtimeSinceStartup - this._lastUpdateTime > this._camTimeoutInSeconds * 0.5)) && (this._lastUpdateTime = this.context.time.realtimeSinceStartup, this._needsUpdate = !1, this._model.send(e, this.context.connection), this.context.isInXR || this.context.players.setPlayerView(this.context.connection.connectionId, e, Uc.Browser));
83514
83514
  }
83515
83515
  onReceivedRemoteCameraInfoBin(e) {
@@ -84545,10 +84545,10 @@ class yp extends Ie {
84545
84545
  } else if (this.dataTemplate || (this.dataTemplate = new me()), this.dataTemplate) {
84546
84546
  const p = se.instantiate(this.dataTemplate);
84547
84547
  if (d = p, p instanceof me)
84548
- Pi(p.geometry), p.geometry = this.createGeometry(c), f(p.material);
84548
+ Bi(p.geometry), p.geometry = this.createGeometry(c), f(p.material);
84549
84549
  else if (p instanceof Ys)
84550
84550
  for (const v of p.children)
84551
- v instanceof me && (Pi(v.geometry), v.geometry = this.createGeometry(c), f(v.material));
84551
+ v instanceof me && (Bi(v.geometry), v.geometry = this.createGeometry(c), f(v.material));
84552
84552
  const m = p.getComponent(yA);
84553
84553
  if (m) {
84554
84554
  const v = p;
@@ -86521,7 +86521,7 @@ class Ak {
86521
86521
  this.x = e, this.y = t, this.z = i, this.w = s;
86522
86522
  }
86523
86523
  }
86524
- class Bi {
86524
+ class Di {
86525
86525
  static identity() {
86526
86526
  return new Ak(0, 0, 0, 1);
86527
86527
  }
@@ -86585,7 +86585,7 @@ class _k {
86585
86585
  }
86586
86586
  rotation() {
86587
86587
  let e = this.rawSet.rbRotation(this.handle);
86588
- return Bi.fromRaw(e);
86588
+ return Di.fromRaw(e);
86589
86589
  }
86590
86590
  nextTranslation() {
86591
86591
  let e = this.rawSet.rbNextTranslation(this.handle);
@@ -86593,7 +86593,7 @@ class _k {
86593
86593
  }
86594
86594
  nextRotation() {
86595
86595
  let e = this.rawSet.rbNextRotation(this.handle);
86596
- return Bi.fromRaw(e);
86596
+ return Di.fromRaw(e);
86597
86597
  }
86598
86598
  setTranslation(e, t) {
86599
86599
  this.rawSet.rbSetTranslation(this.handle, e.x, e.y, e.z, t);
@@ -86682,7 +86682,7 @@ class _k {
86682
86682
  this.rawSet.rbSetAdditionalMass(this.handle, e, t);
86683
86683
  }
86684
86684
  setAdditionalMassProperties(e, t, i, s, r) {
86685
- let o = Re.intoRaw(t), a = Re.intoRaw(i), c = Bi.intoRaw(s);
86685
+ let o = Re.intoRaw(t), a = Re.intoRaw(i), c = Di.intoRaw(s);
86686
86686
  this.rawSet.rbSetAdditionalMassProperties(this.handle, e, o, a, c, r), o.free(), a.free(), c.free();
86687
86687
  }
86688
86688
  setAngularDamping(e) {
@@ -86747,7 +86747,7 @@ class Zd {
86747
86747
  let e, t, i = Re.intoRaw(this.anchor1), s = Re.intoRaw(this.anchor2), r = !1, o = 0, a = 0;
86748
86748
  switch (this.jointType) {
86749
86749
  case ba.Fixed:
86750
- let c = Bi.intoRaw(this.frame1), l = Bi.intoRaw(this.frame2);
86750
+ let c = Di.intoRaw(this.frame1), l = Di.intoRaw(this.frame2);
86751
86751
  t = Ra.fixed(i, c, s, l), c.free(), l.free();
86752
86752
  break;
86753
86753
  case ba.Prismatic:
@@ -86874,35 +86874,35 @@ class ys {
86874
86874
  }
86875
86875
  }
86876
86876
  castShape(e, t, i, s, r, o, a, c) {
86877
- let l = Re.intoRaw(e), u = Bi.intoRaw(t), d = Re.intoRaw(i), f = Re.intoRaw(r), p = Bi.intoRaw(o), m = Re.intoRaw(a), A = this.intoRaw(), v = s.intoRaw(), g = HA.fromRaw(null, A.castShape(l, u, d, v, f, p, m, c));
86877
+ let l = Re.intoRaw(e), u = Di.intoRaw(t), d = Re.intoRaw(i), f = Re.intoRaw(r), p = Di.intoRaw(o), m = Re.intoRaw(a), A = this.intoRaw(), v = s.intoRaw(), g = HA.fromRaw(null, A.castShape(l, u, d, v, f, p, m, c));
86878
86878
  return l.free(), u.free(), d.free(), f.free(), p.free(), m.free(), A.free(), v.free(), g;
86879
86879
  }
86880
86880
  intersectsShape(e, t, i, s, r) {
86881
- let o = Re.intoRaw(e), a = Bi.intoRaw(t), c = Re.intoRaw(s), l = Bi.intoRaw(r), u = this.intoRaw(), d = i.intoRaw(), f = u.intersectsShape(o, a, d, c, l);
86881
+ let o = Re.intoRaw(e), a = Di.intoRaw(t), c = Re.intoRaw(s), l = Di.intoRaw(r), u = this.intoRaw(), d = i.intoRaw(), f = u.intersectsShape(o, a, d, c, l);
86882
86882
  return o.free(), a.free(), c.free(), l.free(), u.free(), d.free(), f;
86883
86883
  }
86884
86884
  contactShape(e, t, i, s, r, o) {
86885
- let a = Re.intoRaw(e), c = Bi.intoRaw(t), l = Re.intoRaw(s), u = Bi.intoRaw(r), d = this.intoRaw(), f = i.intoRaw(), p = Ng.fromRaw(d.contactShape(a, c, f, l, u, o));
86885
+ let a = Re.intoRaw(e), c = Di.intoRaw(t), l = Re.intoRaw(s), u = Di.intoRaw(r), d = this.intoRaw(), f = i.intoRaw(), p = Ng.fromRaw(d.contactShape(a, c, f, l, u, o));
86886
86886
  return a.free(), c.free(), l.free(), u.free(), d.free(), f.free(), p;
86887
86887
  }
86888
86888
  containsPoint(e, t, i) {
86889
- let s = Re.intoRaw(e), r = Bi.intoRaw(t), o = Re.intoRaw(i), a = this.intoRaw(), c = a.containsPoint(s, r, o);
86889
+ let s = Re.intoRaw(e), r = Di.intoRaw(t), o = Re.intoRaw(i), a = this.intoRaw(), c = a.containsPoint(s, r, o);
86890
86890
  return s.free(), r.free(), o.free(), a.free(), c;
86891
86891
  }
86892
86892
  projectPoint(e, t, i, s) {
86893
- let r = Re.intoRaw(e), o = Bi.intoRaw(t), a = Re.intoRaw(i), c = this.intoRaw(), l = wx.fromRaw(c.projectPoint(r, o, a, s));
86893
+ let r = Re.intoRaw(e), o = Di.intoRaw(t), a = Re.intoRaw(i), c = this.intoRaw(), l = wx.fromRaw(c.projectPoint(r, o, a, s));
86894
86894
  return r.free(), o.free(), a.free(), c.free(), l;
86895
86895
  }
86896
86896
  intersectsRay(e, t, i, s) {
86897
- let r = Re.intoRaw(t), o = Bi.intoRaw(i), a = Re.intoRaw(e.origin), c = Re.intoRaw(e.dir), l = this.intoRaw(), u = l.intersectsRay(r, o, a, c, s);
86897
+ let r = Re.intoRaw(t), o = Di.intoRaw(i), a = Re.intoRaw(e.origin), c = Re.intoRaw(e.dir), l = this.intoRaw(), u = l.intersectsRay(r, o, a, c, s);
86898
86898
  return r.free(), o.free(), a.free(), c.free(), l.free(), u;
86899
86899
  }
86900
86900
  castRay(e, t, i, s, r) {
86901
- let o = Re.intoRaw(t), a = Bi.intoRaw(i), c = Re.intoRaw(e.origin), l = Re.intoRaw(e.dir), u = this.intoRaw(), d = u.castRay(o, a, c, l, s, r);
86901
+ let o = Re.intoRaw(t), a = Di.intoRaw(i), c = Re.intoRaw(e.origin), l = Re.intoRaw(e.dir), u = this.intoRaw(), d = u.castRay(o, a, c, l, s, r);
86902
86902
  return o.free(), a.free(), c.free(), l.free(), u.free(), d;
86903
86903
  }
86904
86904
  castRayAndGetNormal(e, t, i, s, r) {
86905
- let o = Re.intoRaw(t), a = Bi.intoRaw(i), c = Re.intoRaw(e.origin), l = Re.intoRaw(e.dir), u = this.intoRaw(), d = Sx.fromRaw(u.castRayAndGetNormal(o, a, c, l, s, r));
86905
+ let o = Re.intoRaw(t), a = Di.intoRaw(i), c = Re.intoRaw(e.origin), l = Re.intoRaw(e.dir), u = this.intoRaw(), d = Sx.fromRaw(u.castRayAndGetNormal(o, a, c, l, s, r));
86906
86906
  return o.free(), a.free(), c.free(), l.free(), u.free(), d;
86907
86907
  }
86908
86908
  }
@@ -87064,7 +87064,7 @@ class xk {
87064
87064
  return Re.fromRaw(this.colliderSet.raw.coTranslation(this.handle));
87065
87065
  }
87066
87066
  rotation() {
87067
- return Bi.fromRaw(this.colliderSet.raw.coRotation(this.handle));
87067
+ return Di.fromRaw(this.colliderSet.raw.coRotation(this.handle));
87068
87068
  }
87069
87069
  isSensor() {
87070
87070
  return this.colliderSet.raw.coIsSensor(this.handle);
@@ -87131,7 +87131,7 @@ class xk {
87131
87131
  this.colliderSet.raw.coSetMass(this.handle, e);
87132
87132
  }
87133
87133
  setMassProperties(e, t, i, s) {
87134
- let r = Re.intoRaw(t), o = Re.intoRaw(i), a = Bi.intoRaw(s);
87134
+ let r = Re.intoRaw(t), o = Re.intoRaw(i), a = Di.intoRaw(s);
87135
87135
  this.colliderSet.raw.coSetMassProperties(this.handle, e, r, o, a), r.free(), o.free(), a.free();
87136
87136
  }
87137
87137
  setTranslation(e) {
@@ -87217,7 +87217,7 @@ class xk {
87217
87217
  return i.free(), s.free(), r;
87218
87218
  }
87219
87219
  castShape(e, t, i, s, r, o) {
87220
- let a = Re.intoRaw(e), c = Re.intoRaw(i), l = Bi.intoRaw(s), u = Re.intoRaw(r), d = t.intoRaw(), f = HA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, a, d, c, l, u, o));
87220
+ let a = Re.intoRaw(e), c = Re.intoRaw(i), l = Di.intoRaw(s), u = Re.intoRaw(r), d = t.intoRaw(), f = HA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, a, d, c, l, u, o));
87221
87221
  return a.free(), c.free(), l.free(), u.free(), d.free(), f;
87222
87222
  }
87223
87223
  castCollider(e, t, i, s) {
@@ -87225,11 +87225,11 @@ class xk {
87225
87225
  return r.free(), o.free(), a;
87226
87226
  }
87227
87227
  intersectsShape(e, t, i) {
87228
- let s = Re.intoRaw(t), r = Bi.intoRaw(i), o = e.intoRaw(), a = this.colliderSet.raw.coIntersectsShape(this.handle, o, s, r);
87228
+ let s = Re.intoRaw(t), r = Di.intoRaw(i), o = e.intoRaw(), a = this.colliderSet.raw.coIntersectsShape(this.handle, o, s, r);
87229
87229
  return s.free(), r.free(), o.free(), a;
87230
87230
  }
87231
87231
  contactShape(e, t, i, s) {
87232
- let r = Re.intoRaw(t), o = Bi.intoRaw(i), a = e.intoRaw(), c = Ng.fromRaw(this.colliderSet.raw.coContactShape(this.handle, a, r, o, s));
87232
+ let r = Re.intoRaw(t), o = Di.intoRaw(i), a = e.intoRaw(), c = Ng.fromRaw(this.colliderSet.raw.coContactShape(this.handle, a, r, o, s));
87233
87233
  return r.free(), o.free(), a.free(), c;
87234
87234
  }
87235
87235
  contactCollider(e, t) {
@@ -87249,7 +87249,7 @@ class xk {
87249
87249
  })(Kd || (Kd = {}));
87250
87250
  class zi {
87251
87251
  constructor(e) {
87252
- this.shape = e, this.massPropsMode = Kd.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = Bi.identity(), this.translation = Re.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = _n.Average, this.restitutionCombineRule = _n.Average, this.activeCollisionTypes = cb.DEFAULT, this.activeEvents = 0, this.activeHooks = 0, this.mass = 0, this.centerOfMass = Re.zeros(), this.contactForceEventThreshold = 0, this.principalAngularInertia = Re.zeros(), this.angularInertiaLocalFrame = Bi.identity();
87252
+ this.shape = e, this.massPropsMode = Kd.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = Di.identity(), this.translation = Re.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = _n.Average, this.restitutionCombineRule = _n.Average, this.activeCollisionTypes = cb.DEFAULT, this.activeEvents = 0, this.activeHooks = 0, this.mass = 0, this.centerOfMass = Re.zeros(), this.contactForceEventThreshold = 0, this.principalAngularInertia = Re.zeros(), this.angularInertiaLocalFrame = Di.identity();
87253
87253
  }
87254
87254
  static ball(e) {
87255
87255
  const t = new VI(e);
@@ -87329,7 +87329,7 @@ class zi {
87329
87329
  return this.translation = { x: e, y: t, z: i }, this;
87330
87330
  }
87331
87331
  setRotation(e) {
87332
- return Bi.copy(this.rotation, e), this;
87332
+ return Di.copy(this.rotation, e), this;
87333
87333
  }
87334
87334
  setSensor(e) {
87335
87335
  return this.isSensor = e, this;
@@ -87341,7 +87341,7 @@ class zi {
87341
87341
  return this.massPropsMode = Kd.Mass, this.mass = e, this;
87342
87342
  }
87343
87343
  setMassProperties(e, t, i, s) {
87344
- return this.massPropsMode = Kd.MassProps, this.mass = e, Re.copy(this.centerOfMass, t), Re.copy(this.principalAngularInertia, i), Bi.copy(this.angularInertiaLocalFrame, s), this;
87344
+ return this.massPropsMode = Kd.MassProps, this.mass = e, Re.copy(this.centerOfMass, t), Re.copy(this.principalAngularInertia, i), Di.copy(this.angularInertiaLocalFrame, s), this;
87345
87345
  }
87346
87346
  setRestitution(e) {
87347
87347
  return this.restitution = e, this;
@@ -87477,7 +87477,6 @@ const eg = class {
87477
87477
  // physics simulation
87478
87478
  h(this, "enabled", !1);
87479
87479
  h(this, "_tempPosition", new w());
87480
- h(this, "_tempPosition2", new w());
87481
87480
  h(this, "_tempQuaternion", new Se());
87482
87481
  h(this, "_tempScale", new w());
87483
87482
  h(this, "_tempMatrix", new Te());
@@ -87492,6 +87491,9 @@ const eg = class {
87492
87491
  h(this, "_gravity", { x: 0, y: -9.81, z: 0 });
87493
87492
  // private _lastStepTime: number | undefined = 0;
87494
87493
  h(this, "lines");
87494
+ h(this, "_tempCenterPos", new w());
87495
+ h(this, "_tempCenterVec", new w());
87496
+ h(this, "_tempCenterQuaternion", new Se());
87495
87497
  }
87496
87498
  removeBody(e) {
87497
87499
  var i, s, r;
@@ -87813,7 +87815,7 @@ this is not optimal for performance since this isn't supported by the Rapier phy
87813
87815
  throw new Error("Physics world not initialized");
87814
87816
  const i = this._tempMatrix;
87815
87817
  let s;
87816
- e.attachedRigidbody ? s = this.getRigidbody(e, this._tempMatrix) : (Cs && console.log("Create collider without rigidbody", e.name), i.makeRotationFromQuaternion(Di(e.gameObject)), i.setPosition(mt(e.gameObject))), i.decompose(this._tempPosition, this._tempQuaternion, this._tempScale), this.tryApplyCenter(e, this._tempPosition), t.setTranslation(this._tempPosition.x, this._tempPosition.y, this._tempPosition.z), t.setRotation(this._tempQuaternion), t.setSensor(e.isTrigger);
87818
+ e.attachedRigidbody ? s = this.getRigidbody(e, this._tempMatrix) : (Cs && console.log("Create collider without rigidbody", e.name), i.makeRotationFromQuaternion(Ti(e.gameObject)), i.setPosition(mt(e.gameObject))), i.decompose(this._tempPosition, this._tempQuaternion, this._tempScale), this.tryApplyCenter(e, this._tempPosition), t.setTranslation(this._tempPosition.x, this._tempPosition.y, this._tempPosition.z), t.setRotation(this._tempQuaternion), t.setSensor(e.isTrigger);
87817
87819
  const r = e.sharedMaterial;
87818
87820
  if (r) {
87819
87821
  if (r.bounciness !== void 0 && t.setRestitution(r.bounciness), r.bounceCombine !== void 0)
@@ -87862,16 +87864,16 @@ Error:`, a), null;
87862
87864
  let i = null;
87863
87865
  if (e.attachedRigidbody) {
87864
87866
  const s = e.attachedRigidbody;
87865
- if (i = s[ar], s.autoMass, !i) {
87867
+ if (i = s[ar], !i) {
87866
87868
  const r = s.isKinematic && !VS;
87867
87869
  Cs && console.log("Create rigidbody", r);
87868
87870
  const o = r ? Ed.RigidBodyDesc.kinematicPositionBased() : Ed.RigidBodyDesc.dynamic(), a = mt(e.attachedRigidbody.gameObject);
87869
- o.setTranslation(a.x, a.y, a.z), o.setRotation(Di(e.attachedRigidbody.gameObject)), i = this.world.createRigidBody(o), this.bodies.push(i), this.objects.push(s);
87871
+ o.setTranslation(a.x, a.y, a.z), o.setRotation(Ti(e.attachedRigidbody.gameObject)), i = this.world.createRigidBody(o), this.bodies.push(i), this.objects.push(s);
87870
87872
  }
87871
87873
  i[ur] = s, s[ar] = i, this.internalUpdateRigidbodyProperties(s, i), this.getRigidbodyRelativeMatrix(e.gameObject, s.gameObject, t), e[Sk] = i;
87872
87874
  } else {
87873
87875
  const s = Ed.RigidBodyDesc.kinematicPositionBased(), r = mt(e.gameObject);
87874
- s.setTranslation(r.x, r.y, r.z), s.setRotation(Di(e.gameObject)), i = this.world.createRigidBody(s), t.identity(), i[ur] = null;
87876
+ s.setTranslation(r.x, r.y, r.z), s.setRotation(Ti(e.gameObject)), i = this.world.createRigidBody(s), t.identity(), i[ur] = null;
87875
87877
  }
87876
87878
  return i;
87877
87879
  }
@@ -87958,7 +87960,7 @@ Error:`, a), null;
87958
87960
  }
87959
87961
  syncPhysicsBody(e, t, i, s) {
87960
87962
  if (t instanceof _k) {
87961
- const r = mt(e, this._tempPosition), o = Di(e, this._tempQuaternion);
87963
+ const r = mt(e, this._tempPosition), o = Ti(e, this._tempQuaternion);
87962
87964
  switch (t.bodyType()) {
87963
87965
  case qm.Fixed:
87964
87966
  case qm.KinematicPositionBased:
@@ -87971,13 +87973,17 @@ Error:`, a), null;
87971
87973
  }
87972
87974
  t.wakeUp();
87973
87975
  } else if (t instanceof xk) {
87974
- const r = mt(e, this._tempPosition), o = Di(e, this._tempQuaternion), a = t[ur];
87976
+ const r = mt(e, this._tempPosition), o = Ti(e, this._tempQuaternion), a = t[ur];
87975
87977
  this.tryApplyCenter(a, r), i && t.setTranslation(r), s && t.setRotation(o);
87976
87978
  }
87977
87979
  }
87978
87980
  tryApplyCenter(e, t) {
87979
87981
  const i = e.center;
87980
- i && e.gameObject && (hs(e.gameObject, this._tempScale), this._tempPosition2.x = i.x, this._tempPosition2.y = i.y, this._tempPosition2.z = i.z, this._tempPosition2.multiply(this._tempScale), t.x -= this._tempPosition2.x, t.y += this._tempPosition2.y, t.z += this._tempPosition2.z);
87982
+ if (i && e.gameObject && (i.x !== 0 || i.y !== 0 || i.z !== 0)) {
87983
+ this._tempCenterPos.x = -i.x, this._tempCenterPos.y = i.y, this._tempCenterPos.z = i.z, hs(e.gameObject, this._tempCenterVec), this._tempCenterPos.multiply(this._tempCenterVec);
87984
+ const s = Ti(e.gameObject, this._tempCenterQuaternion);
87985
+ this._tempCenterPos.applyQuaternion(s), t.x += this._tempCenterPos.x, t.y += this._tempCenterPos.y, t.z += this._tempCenterPos.z;
87986
+ }
87981
87987
  }
87982
87988
  getRigidbodyRelativeMatrix(e, t, i, s) {
87983
87989
  if (s === void 0 && (s = eg._matricesBuffer, s.length = 0), e === t) {
@@ -89256,7 +89262,7 @@ export {
89256
89262
  P9 as destroyComponentInstance,
89257
89263
  _ne as detectARSupport,
89258
89264
  xne as detectVRSupport,
89259
- Pi as disposeObjectResources,
89265
+ Bi as disposeObjectResources,
89260
89266
  Dl as disposeStream,
89261
89267
  BX as download,
89262
89268
  AU as download_file,
@@ -89292,7 +89298,7 @@ export {
89292
89298
  M2 as getWorldDirection,
89293
89299
  cj as getWorldEuler,
89294
89300
  mt as getWorldPosition,
89295
- Di as getWorldQuaternion,
89301
+ Ti as getWorldQuaternion,
89296
89302
  i_ as getWorldRotation,
89297
89303
  hs as getWorldScale,
89298
89304
  MU as hasIndieLicense,