fixed bugs

This commit is contained in:
Vasyl Kazakov
2026-06-03 11:49:30 +03:00
parent e14b97b5e7
commit adf4e4b9bf
15 changed files with 523 additions and 149 deletions
+6
View File
@@ -22,12 +22,18 @@ export class Map {
mapObject.position.set(0, 0, 0);
ThreeC.setShadowsStateForChildren(mapObject, true, true);
ThreeC.addToScene(mapObject);
this.hideReferenceHpUi(mapObject);
PhysicsTriggerC.init();
this.buildPhysics(mapObject);
InteractiveZoneC.init(mapObject);
}
private static hideReferenceHpUi(mapObject: Object3D) {
const ui = mapObject.getObjectByName("UI");
if (ui) ui.visible = false;
}
private static buildPhysics(mapObject: Object3D) {
for (const layerName of MAP_PHYSICS_LAYERS) {
const layer = mapObject.getObjectByName(layerName);