@adatechnology/game-destruction-three 0.24.1 → 0.24.2
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/dist/index.global.js +39 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -540,6 +540,7 @@ var FragmentSystem = class {
|
|
|
540
540
|
rouse(f) {
|
|
541
541
|
f.asleep = false;
|
|
542
542
|
f.rest = 0;
|
|
543
|
+
f.floor = null;
|
|
543
544
|
f.mesh.matrixAutoUpdate = true;
|
|
544
545
|
}
|
|
545
546
|
/** What lies inside the disc looks at the ground again: it was dug or heaped under it. */
|
|
@@ -585,6 +586,7 @@ var FragmentSystem = class {
|
|
|
585
586
|
if (!f.asleep || f.dying) continue;
|
|
586
587
|
const e = this.m.makeRotationFromQuaternion(f.mesh.quaternion).elements;
|
|
587
588
|
const ext = Math.abs(e[1]) * f.half.x + Math.abs(e[5]) * f.half.y + Math.abs(e[9]) * f.half.z;
|
|
589
|
+
f.floor = null;
|
|
588
590
|
if (f.mesh.position.y - ext > this.floorUnder(f) + SUPPORT_GAP) this.rouse(f);
|
|
589
591
|
}
|
|
590
592
|
}
|