new animation, refactor, fixes
This commit is contained in:
@@ -7,6 +7,7 @@ import { findDamageStateLayers } from "./PropDamageLayers";
|
||||
import { resolvePropType } from "../Resources/PropDropTable";
|
||||
|
||||
import { InteractiveZoneC } from "./InteractiveZoneC";
|
||||
import { ToolZoneC } from "./ToolZoneC";
|
||||
|
||||
const MAP_PHYSICS_LAYERS = ["Colliders", "Lootable"];
|
||||
const GATHER_TRIGGER_PADDING = 0.5;
|
||||
@@ -27,11 +28,15 @@ export class Map {
|
||||
PhysicsTriggerC.init();
|
||||
this.buildPhysics(mapObject);
|
||||
InteractiveZoneC.init(mapObject);
|
||||
ToolZoneC.init(mapObject);
|
||||
}
|
||||
|
||||
private static hideReferenceHpUi(mapObject: Object3D) {
|
||||
const ui = mapObject.getObjectByName("UI");
|
||||
if (ui) ui.visible = false;
|
||||
|
||||
const woodUi = mapObject.getObjectByName("UI_Wood001");
|
||||
if (woodUi) woodUi.visible = false;
|
||||
}
|
||||
|
||||
private static buildPhysics(mapObject: Object3D) {
|
||||
|
||||
Reference in New Issue
Block a user