Working on doors interactive objects in dorm

This commit is contained in:
Vladislav Khorev 2026-06-02 21:25:10 +03:00
parent 65d19c577a
commit aaae368a07
2 changed files with 226 additions and 144 deletions

View File

@ -1,5 +1,230 @@
{ {
"objects": [ "objects": [
{
"name": "Door_Room_1_1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": 10.0,
"approachRadius": 0.89,
"boundsMaxX": 0.01552116870880127,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.5717296600341797,
"boundsMinX": -0.09790635108947754,
"boundsMinY": -1.0,
"boundsMinZ": -0.548670768737793,
"interactionPositionX": 0.9887073040008545,
"interactionPositionY": 0.0,
"interactionPositionZ": 10.041143417358398,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_1_-1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_-1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": 10.0,
"approachRadius": 0.8,
"boundsMaxX": 0.10440409183502197,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.5663089752197266,
"boundsMinX": -0.05429041385650635,
"boundsMinY": -1.0,
"boundsMinZ": -0.5487642288208008,
"interactionPositionX": -0.9637802839279175,
"interactionPositionY": 0.0,
"interactionPositionZ": 9.992685317993164,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_-1_1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_-1_1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": -10.0,
"approachRadius": 0.8,
"boundsMaxX": 0.05766594409942627,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.5710372924804688,
"boundsMinX": -0.0875619649887085,
"boundsMinY": -1.0,
"boundsMinZ": -0.525609016418457,
"interactionPositionX": 0.988898515701294,
"interactionPositionY": 0.0,
"interactionPositionZ": -9.97990608215332,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_-1_-1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_-1_-1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": -10.0,
"approachRadius": 0.8,
"boundsMaxX": 0.10906755924224854,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.5573873519897461,
"boundsMinX": -0.02557361125946045,
"boundsMinY": -1.0,
"boundsMinZ": -0.5323200225830078,
"interactionPositionX": -0.968346118927002,
"interactionPositionY": 0.0,
"interactionPositionZ": -10.002159118652344,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_1_1_1_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_1_1_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": 15.7,
"approachRadius": 0.8,
"boundsMaxX": 0.046350955963134766,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.5500001907348633,
"boundsMinX": -0.10775184631347656,
"boundsMinY": -1.0,
"boundsMinZ": -0.5863857269287109,
"interactionPositionX": 1.005477786064148,
"interactionPositionY": 0.0,
"interactionPositionZ": 15.732091903686523,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_1_-1_1_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_-1_1_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": 15.7,
"approachRadius": 0.800000011920929,
"boundsMaxX": 0.12420153617858887,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.5454416275024414,
"boundsMinX": -0.02631092071533203,
"boundsMinY": 0.0,
"boundsMinZ": -0.5781536102294922,
"interactionPositionX": -0.9698797464370728,
"interactionPositionY": 0.0,
"interactionPositionZ": 15.617175102233887,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Utility_1_1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_1_1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": 19.95,
"approachRadius": 0.8,
"boundsMaxX": -0.05098748207092285,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.52764892578125,
"boundsMinX": -0.1196892261505127,
"boundsMinY": -1.0,
"boundsMinZ": -0.5527801513671875,
"interactionPositionX": 1.0174394845962524,
"interactionPositionY": 0.0,
"interactionPositionZ": 19.976728439331055,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Utility_1_-1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_1_-1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": 19.95,
"approachRadius": 0.8,
"boundsMaxX": 0.07334935665130615,
"boundsMaxY": 1.0,
"boundsMaxZ": 0.5791053771972656,
"boundsMinX": -0.04259765148162842,
"boundsMinY": -1.0,
"boundsMinZ": -0.5342922210693359,
"interactionPositionX": -1.0046367645263672,
"interactionPositionY": 0.0,
"interactionPositionZ": 19.962736129760742,
"interactionRadius": 0.0,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Utility_-1_1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_-1_1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": -19.95,
"pivotX": 0.0,
"pivotY": 0.0,
"pivotZ": -0.6,
"scale": 1.0,
"interactionRadius": 0.0
},
{
"name": "Door_Utility_-1_-1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_-1_-1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": -19.95,
"pivotX": 0.0,
"pivotY": 0.0,
"pivotZ": -0.6,
"scale": 1.0,
"interactionRadius": 0.0
},
{ {
"name": "Phone001", "name": "Phone001",
"texturePath": "resources/w/dorm2/phone001_tex001.png", "texturePath": "resources/w/dorm2/phone001_tex001.png",
@ -176,150 +401,6 @@
"scale": 1.0, "scale": 1.0,
"interactionRadius": 0.0, "interactionRadius": 0.0,
"activateFunction": "on_alik_door_click" "activateFunction": "on_alik_door_click"
},
{
"name": "Door_Room_1_1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": 10.0,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_1_-1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_-1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": 10.0,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_-1_1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_-1_1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": -10.0,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_-1_-1_0_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_-1_-1_0_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": -10.0,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_1_1_1_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_1_1_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": 15.7,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Room_1_-1_1_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Room_1_-1_1_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": 15.7,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Utility_1_1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_1_1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": 19.95,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Utility_1_-1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_1_-1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": 19.95,
"scale": 1.0,
"interactionRadius": 0.5,
"activateFunction": "on_locked_door_click"
},
{
"name": "Door_Utility_-1_1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_-1_1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.1,
"positionY": 0.0,
"positionZ": -19.95,
"pivotX": 0.0,
"pivotY": 0.0,
"pivotZ": -0.6,
"scale": 1.0,
"interactionRadius": 0.0
},
{
"name": "Door_Utility_-1_-1_2_Leaf_001",
"texturePath": "resources/w/dorm2/doors_tex001.png",
"meshPath": "resources/w/dorm2/Door_Utility_-1_-1_2_Leaf_001.txt",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": -1.1,
"positionY": 0.0,
"positionZ": -19.95,
"pivotX": 0.0,
"pivotY": 0.0,
"pivotZ": -0.6,
"scale": 1.0,
"interactionRadius": 0.0
}, },
{ {
"name": "Room_Cover_Bath_W_N_2_001", "name": "Room_Cover_Bath_W_N_2_001",

View File

@ -272,6 +272,7 @@ namespace ZL
} }
} }
LocationSetup uniExteriorParams = uniInteriorParams; LocationSetup uniExteriorParams = uniInteriorParams;
uniExteriorParams.gameObjectsJsonPath = "resources/config2/gameobjects_uni_exterior.json"; uniExteriorParams.gameObjectsJsonPath = "resources/config2/gameobjects_uni_exterior.json";
uniExteriorParams.interactiveObjectsJsonPath = "resources/config2/interactive_objects_uni_exterior.json"; uniExteriorParams.interactiveObjectsJsonPath = "resources/config2/interactive_objects_uni_exterior.json";