@mml-io/3d-web-client-core 0.0.0-experimental-9545514-20231127 → 0.0.0-experimental-22f0c83-20231128
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.
- package/build/index.js +5 -5
- package/build/index.js.map +2 -2
- package/package.json +2 -2
package/build/index.js
CHANGED
@@ -4672,13 +4672,13 @@ var CollisionsManager = class {
|
|
4672
4672
|
group.updateWorldMatrix(true, false);
|
4673
4673
|
const invertedRootMatrix = this.tempMatrix.copy(group.matrixWorld).invert();
|
4674
4674
|
group.traverse((child) => {
|
4675
|
-
|
4676
|
-
|
4677
|
-
const clonedGeometry =
|
4675
|
+
const asMesh = child;
|
4676
|
+
if (asMesh.isMesh) {
|
4677
|
+
const clonedGeometry = asMesh.geometry.clone();
|
4678
4678
|
if (child !== group) {
|
4679
|
-
|
4679
|
+
asMesh.updateWorldMatrix(true, false);
|
4680
4680
|
clonedGeometry.applyMatrix4(
|
4681
|
-
this.tempMatrix2.multiplyMatrices(invertedRootMatrix,
|
4681
|
+
this.tempMatrix2.multiplyMatrices(invertedRootMatrix, asMesh.matrixWorld)
|
4682
4682
|
);
|
4683
4683
|
}
|
4684
4684
|
for (const key in clonedGeometry.attributes) {
|