{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xocialize.dev/schemas/vrmxs/1.json",
  "title": "VRMXG scene (.vrmxs) v1",
  "type": "object",
  "required": [
    "format",
    "version",
    "id",
    "nodes"
  ],
  "properties": {
    "format": {
      "const": "vrmxs"
    },
    "version": {
      "const": 1
    },
    "id": {
      "type": "string"
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "type",
          "ref"
        ],
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "vrmxa",
              "vrmxw",
              "vrmxi",
              "vrmxs",
              "glb",
              "vrma",
              "audio",
              "texture"
            ]
          },
          "ref": {
            "type": "string",
            "description": "Path relative to the project root."
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        }
      }
    },
    "nodes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "type"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$",
            "description": "Stable node id; \"/\" separates instance levels."
          },
          "type": {
            "type": "string"
          },
          "parent": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$",
            "description": "Stable node id; \"/\" separates instance levels."
          }
        },
        "allOf": [
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Node3D"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Node3D"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "AudioPlayer"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.AudioPlayer"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "AudioPlayer3D"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.AudioPlayer3D"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "AnimationPlayer"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.AnimationPlayer"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Marker"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Marker"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Model"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Model"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Instance"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Instance"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Character"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Character"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Camera"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Camera"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "VirtualCamera"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.VirtualCamera"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "CameraBrain"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.CameraBrain"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "ParticleEmitter"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.ParticleEmitter"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Path3D"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Path3D"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "DirectionalLight"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.DirectionalLight"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "PointLight"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.PointLight"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "SpotLight"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.SpotLight"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Environment"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Environment"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Item"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Item"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "RigidBody"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.RigidBody"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Collider"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Collider"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "Area"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.Area"
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "BoneAttachment"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "$ref": "#/$defs/node.BoneAttachment"
            }
          }
        ]
      }
    },
    "connections": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "from",
          "signal",
          "to",
          "call"
        ],
        "additionalProperties": true,
        "properties": {
          "from": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$",
            "description": "Stable node id; \"/\" separates instance levels."
          },
          "signal": {
            "type": "string"
          },
          "to": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$",
            "description": "Stable node id; \"/\" separates instance levels."
          },
          "call": {
            "type": "string"
          },
          "args": {
            "type": "object"
          }
        }
      }
    },
    "settings": {
      "type": "object"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "node.Node3D": {"type":"object","required":["id","type"],"description":"A transform in the tree. Every other node type derives from it.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Node3D"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.AudioPlayer": {"type":"object","required":["id","type","asset"],"description":"Plays a sound clip (.wav) everywhere at once: music, ambience, interface sounds.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"AudioPlayer"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"bus":{"enum":["music","sfx","voice","ambience"],"description":"The mixer bus it plays on.","default":"sfx"},"volume":{"type":"number","minimum":0,"maximum":4,"description":"Linear gain.","default":1},"loop":{"type":"boolean","default":false},"autoplay":{"type":"boolean","description":"Start when the scene starts.","default":false}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}},"asset":{"type":"string","description":"Id of an entry in \"assets\" of type audio."}},"additionalProperties":true},
    "node.AudioPlayer3D": {"type":"object","required":["id","type","asset"],"description":"Plays a sound clip from where it is: doors, switches, machines.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"AudioPlayer3D"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"bus":{"enum":["music","sfx","voice","ambience"],"description":"The mixer bus it plays on.","default":"sfx"},"volume":{"type":"number","minimum":0,"maximum":4,"description":"Linear gain.","default":1},"loop":{"type":"boolean","default":false},"autoplay":{"type":"boolean","description":"Start when the scene starts.","default":false},"refDistance":{"type":"number","minimum":0.01,"description":"Full volume up to this distance.","default":1},"maxDistance":{"type":"number","minimum":0.1,"default":30},"rolloff":{"type":"number","minimum":0,"description":"How fast it fades past refDistance (inverse distance).","default":1}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}},"asset":{"type":"string","description":"Id of an entry in \"assets\" of type audio."}},"additionalProperties":true},
    "node.AnimationPlayer": {"type":"object","required":["id","type"],"description":"Plays keyed tracks on the simulation clock: properties, transforms, expressions, character animation, events and sounds. For doors, items, lights and small cutscenes.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"AnimationPlayer"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"tracks":{"type":"array","items":{"type":"object","required":["type"],"properties":{"id":{"type":"string"},"type":{"enum":["property","transform","expression","event","audio","animation"]},"target":{"type":"string","description":"Node id the track drives (property, transform, expression, animation)."},"path":{"type":"string","description":"Property tracks: \"visible\" or \"props.<name>\"."},"step":{"type":"integer","minimum":1,"maximum":4,"description":"Hold on ones, twos, threes (anime timing)."},"interp":{"enum":["linear","step"]},"bus":{"type":"string"},"keys":{"description":"[[frame, value, ease?], …]; expression tracks: { name: [[frame, weight, ease?], …] }; event tracks: [[frame, { target, call, args } | { emit }]]."},"clips":{"type":"array","items":{"type":"object"},"description":"Animation: [{ start, end, slot | clip, speed, offset, loop, blendIn, blendOut }]; audio: [{ start, end, asset, offset, gain, bus }]."}}},"description":"The tracks it plays."},"length":{"type":"number","minimum":0,"description":"Where it ends (default: its last key or clip)."},"fps":{"type":"number","minimum":1,"maximum":240,"description":"Frames per second the keys are counted in.","default":30},"speed":{"type":"number","minimum":0,"maximum":16,"default":1},"loop":{"type":"boolean","default":false},"autoplay":{"type":"boolean","description":"Start when the scene starts.","default":false}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.Marker": {"type":"object","required":["id","type"],"description":"A named point: spawn points, look targets, waypoints.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Marker"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"purpose":{"enum":["spawn","look","waypoint","other"],"default":"other"}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.Model": {"type":"object","required":["id","type","asset"],"description":"Static or animated glTF geometry from a .glb asset (sets, props).","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Model"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"castShadow":{"type":"boolean","default":true},"receiveShadow":{"type":"boolean","default":true},"colliders":{"enum":["none","fromAsset","trimesh","convex"],"description":"Where physics colliders come from: KHR_physics in the asset, or generated.","default":"fromAsset"}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}},"asset":{"type":"string","description":"Id of an entry in \"assets\" of type glb."}},"additionalProperties":true},
    "node.Instance": {"type":"object","required":["id","type","asset"],"description":"Another .vrmxs scene placed here (a prefab), with overrides by inner node id.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Instance"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}},"asset":{"type":"string","description":"Id of an entry in \"assets\" of type vrmxs."},"overrides":{"type":"object","description":"Partial nodes keyed by inner node id (\"hinge\", or \"frame/hinge\" for nested prefabs), deep-merged over the prefab.","additionalProperties":{"type":"object","properties":{"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"props":{"type":"object"},"behaviours":{"type":"array"},"tags":{"type":"array"}},"additionalProperties":false}}},"additionalProperties":true},
    "node.Character": {"type":"object","required":["id","type","asset"],"description":"A VRMXA character: VRM body, closet, animation sets, voice.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Character"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"outfit":{"type":"string","description":"Outfit id from the character's closet."},"controller":{"enum":["none","player","npc"],"default":"none"},"animationSet":{"type":"string","description":"Animation set id; defaults to the one equipped items imply (VRMXA §8.3)."},"capsuleHeight":{"type":"number","minimum":0.3,"maximum":3},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"jumpSpeed":{"type":"number","minimum":0,"default":4.5},"layer":{"type":"string","description":"Collision layer of the capsule."},"mass":{"type":"number","minimum":1,"description":"Shared among the ragdoll's parts when knocked down (60)."},"getUpSeconds":{"type":"number","minimum":0.1,"maximum":10,"description":"How long getting up from a ragdoll blends back into animation (1.2)."}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}},"asset":{"type":"string","description":"Id of an entry in \"assets\" of type vrmxa."}},"additionalProperties":true},
    "node.Camera": {"type":"object","required":["id","type"],"description":"A physical camera: lens, sensor and focus, as the cinematics research specifies.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Camera"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"focalLength":{"type":"number","minimum":4,"maximum":1200,"default":50},"sensor":{"enum":["super35","fullframe","mft","anime","custom"],"default":"super35"},"sensorMm":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"A custom sensor: [width, height, 0] in mm (sensor custom)."},"gateFit":{"enum":["fill","overscan"],"description":"Fill the frame with the sensor (crop) or show all of it.","default":"fill"},"fStop":{"type":"number","minimum":0.7,"maximum":64,"default":2.8},"coc":{"type":"number","minimum":0.001,"maximum":0.2,"description":"Circle of confusion (default: the sensor diagonal / 1500)."},"dutch":{"type":"number","minimum":-90,"maximum":90,"description":"Dutch angle: roll about the view axis.","default":0},"focusDistance":{"type":"number","minimum":0.05,"default":3},"near":{"type":"number","minimum":0.001,"default":0.1},"far":{"type":"number","minimum":0.1,"default":500},"preset":{"enum":["free","fixed","orbit","follow","overShoulder","firstPerson"],"description":"Rig preset; switchable at run time (setPreset, nextPreset).","default":"free"},"player":{"type":"number","minimum":1,"maximum":4,"description":"Split screen: this camera is that player's, takes that player's look input and draws in their viewport."},"rig":{"type":"object","description":"Rig overrides: distance, height, side (m); yaw, pitch (degrees): the starting view, yaw 0 looking along +Z."},"target":{"type":"string","description":"Follow / orbit target."}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.VirtualCamera": {"type":"object","required":["id","type"],"description":"A candidate shot: a body (where the camera is), an aim (where it looks), a lens, seeded noise and impulses. A CameraBrain picks one and renders through its Camera.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"VirtualCamera"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"rig":{"enum":["fixed","security","follow","thirdPerson","overShoulder","firstPerson","topDown","orbit","turntable","dolly","crane","closeUp","twoShot","handheld","shotReverse"],"description":"Preset body / aim / lens / noise; the props below override any part.","default":"fixed"},"priority":{"type":"number","description":"Higher wins on its channel; the most recently activated wins a tie.","default":10},"channel":{"type":"string","description":"Which brain (output) it competes for.","default":"main"},"enabled":{"type":"boolean","default":true},"body":{"type":"object","description":"type: fixed | follow | orbit | thirdPerson | firstPerson | dolly | hardLock; target; follow: offset [x, y, z] (target space), space, damping (s); orbit: radius, yaw, pitch (°), yawSpeed (°/s); thirdPerson: shoulder, arm, collide; dolly: path (a Path3D), u (0–1, else closest to the target), lead, pathDamping."},"aim":{"type":"object","description":"type: none | lookAt | composer | groupFraming | panTilt; target (\"id\" or \"id#head\"); offset; composer: screen [x, y] (−1…1), deadZone [w, h], softZone [w, h], damping (s); groupFraming: targets [...], size (frame-height fraction); panTilt: yaw, pitch (°)."},"lens":{"type":"object","description":"focalLength (mm), fStop, focusDistance (m) or focusTarget, dutch (°), sensor."},"noise":{"type":"object","description":"profile: handheldLight | handheldHeavy | vehicle; amplitude, frequency multipliers."},"impulseDecay":{"type":"number","minimum":0.05,"default":0.6}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.CameraBrain": {"type":"object","required":["id","type"],"description":"Picks the live VirtualCamera on its channel and blends between them onto a Camera node: one per output (main view, picture in picture, split screen, a render job).","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"CameraBrain"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"camera":{"type":"string","description":"The Camera node it drives."},"channel":{"type":"string","default":"main"},"defaultBlend":{"type":"object","description":"{ style: cut | linear | easeInOut | easeIn | easeOut, seconds } (or frames + fps)."},"blends":{"type":"array","items":{"type":"object"},"description":"Per-pair blends: [{ from, to, style, seconds }] (\"*\" matches any)."},"makeCurrent":{"type":"boolean","description":"Make its Camera the one the view renders through.","default":true}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.ParticleEmitter": {"type":"object","required":["id","type"],"description":"Shows a particle effect where it stands: steam, dust, sparks, or an effect document from the project. In the simulation by default (seeded, in the snapshot, scrubs exactly); presentation for visual-only dressing.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"ParticleEmitter"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"effect":{"type":"string","description":"A built-in effect (steam, dust, sparks) or a project effect document (.json).","default":"steam"},"mode":{"enum":["simulation","presentation"],"description":"simulation: stepped at 60 Hz, in the snapshot and the hash; presentation: stepped with the frame, visual only.","default":"simulation"},"autoplay":{"type":"boolean","description":"Start when the scene starts.","default":true},"speed":{"type":"number","minimum":0,"maximum":16,"description":"Time scale of the effect.","default":1}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.Path3D": {"type":"object","required":["id","type"],"description":"A smooth path through points (Catmull-Rom, by arc length) for dollies, rails and cranes.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Path3D"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"points":{"type":"array","items":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"minItems":2,"description":"Points in the node's space."},"closed":{"type":"boolean","default":false},"tension":{"type":"number","minimum":0,"maximum":1,"default":0.5}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.DirectionalLight": {"type":"object","required":["id","type"],"description":"Sun-like light along the node's -Z. The shadow box is centred on the node.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"DirectionalLight"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#ffffff"},"intensity":{"type":"number","minimum":0,"default":2},"castShadow":{"type":"boolean","default":true},"shadowPreset":{"enum":["low","medium","high","ultra"],"description":"Map size 512 / 1024 / 2048 / 4096, with matching bias.","default":"medium"},"shadowUpdate":{"enum":["always","once"],"description":"\"once\" renders the map once and keeps it (static sets).","default":"always"},"shadowExtent":{"type":"number","minimum":0.5,"description":"Half the width of the shadow box.","default":8}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.PointLight": {"type":"object","required":["id","type"],"description":"Omni light with range.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"PointLight"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#ffffff"},"intensity":{"type":"number","minimum":0,"default":1},"range":{"type":"number","minimum":0,"default":10},"castShadow":{"type":"boolean","default":false},"shadowPreset":{"enum":["low","medium","high","ultra"],"description":"Map size 512 / 1024 / 2048 / 4096, with matching bias.","default":"medium"},"shadowUpdate":{"enum":["always","once"],"description":"\"once\" renders the map once and keeps it (static sets).","default":"always"}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.SpotLight": {"type":"object","required":["id","type"],"description":"Cone light along the node's -Z.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"SpotLight"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#ffffff"},"intensity":{"type":"number","minimum":0,"default":10},"range":{"type":"number","minimum":0,"default":10},"angle":{"type":"number","minimum":1,"maximum":89,"description":"Half-angle of the cone.","default":30},"penumbra":{"type":"number","minimum":0,"maximum":1,"default":0.2},"castShadow":{"type":"boolean","default":false},"shadowPreset":{"enum":["low","medium","high","ultra"],"description":"Map size 512 / 1024 / 2048 / 4096, with matching bias.","default":"medium"},"shadowUpdate":{"enum":["always","once"],"description":"\"once\" renders the map once and keeps it (static sets).","default":"always"}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.Environment": {"type":"object","required":["id","type"],"description":"How the world looks around everything: background, environment lighting, ambient, fog, tone mapping, exposure, an optional ground plane. One per scene (the first wins).","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Environment"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"background":{"enum":["color","gradient","environment","transparent"],"default":"color"},"backgroundColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#c9d3df"},"skyTopColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#6f9bd1"},"skyHorizonColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#dfe7ef"},"environment":{"enum":["none","room"],"description":"Image-based lighting: none, or a neutral studio room.","default":"room"},"environmentIntensity":{"type":"number","minimum":0,"default":0.4},"ambientColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#ffffff"},"ambientIntensity":{"type":"number","minimum":0,"default":0.6},"fog":{"enum":["none","linear","exponential"],"default":"none"},"fogColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#c9d3df"},"fogNear":{"type":"number","minimum":0,"default":10},"fogFar":{"type":"number","minimum":0,"default":60},"fogDensity":{"type":"number","minimum":0,"default":0.02},"toneMapping":{"enum":["neutral","agx","aces","none"],"description":"Neutral keeps MToon's authored colours.","default":"neutral"},"exposure":{"type":"number","minimum":0,"default":1},"post":{"description":"The post stack: a preset (\"anime\", \"clean\") or a list of effects [{ effect: edges | dof | bloom | grade | lut | toneMapping | vignette | grain | anime | chromaticAberration | smaa, …params }]. Lengths in px at 1080p.","anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","required":["effect"]}}]},"ground":{"type":"boolean","description":"A shadow-receiving ground plane at y = 0.","default":false},"groundColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#9aa3ad"},"groundSize":{"type":"number","minimum":1,"default":40}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.Item": {"type":"object","required":["id","type","asset"],"description":"A VRMXI game item: a door, container, pickup, switch, seat or spawn point, with its states and verbs.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Item"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","description":"The state the item starts in; absent: its default (the first)."}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}},"asset":{"type":"string","description":"Id of an entry in \"assets\" of type vrmxi."}},"additionalProperties":true},
    "node.RigidBody": {"type":"object","required":["id","type"],"description":"A Rapier rigid body; its Collider children give it shape.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"RigidBody"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"bodyType":{"enum":["dynamic","kinematic","fixed"],"default":"dynamic"},"mass":{"type":"number","minimum":0},"linearDamping":{"type":"number","minimum":0,"default":0}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.Collider": {"type":"object","required":["id","type"],"description":"A collision shape. Under a RigidBody it moves with it; otherwise it is fixed.","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Collider"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"shape":{"enum":["box","sphere","capsule","cylinder","convex","trimesh"],"default":"box"},"size":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Box extents."},"radius":{"type":"number","minimum":0},"height":{"type":"number","minimum":0},"friction":{"type":"number","minimum":0,"default":0.5},"restitution":{"type":"number","minimum":0,"maximum":1,"default":0}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.Area": {"type":"object","required":["id","type"],"description":"A sensor volume: reports bodies entering and leaving (door triggers, pickups).","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"Area"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"shape":{"enum":["box","sphere","capsule","cylinder","convex","trimesh"],"default":"box"},"size":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Box extents."},"radius":{"type":"number","minimum":0},"height":{"type":"number","minimum":0},"friction":{"type":"number","minimum":0,"default":0.5},"restitution":{"type":"number","minimum":0,"maximum":1,"default":0}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "node.BoneAttachment": {"type":"object","required":["id","type"],"description":"Rides on a humanoid bone of the Character it is inside (held and stowed items).","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"type":{"const":"BoneAttachment"},"parent":{"type":"string","pattern":"^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$","description":"Stable node id; \"/\" separates instance levels."},"name":{"type":"string"},"transform":{"type":"object","additionalProperties":false,"description":"Local transform: metres, Y up, right-handed, +Z forward (VRM 1.0 frame).","properties":{"p":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Position (m)."},"q":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Rotation quaternion x, y, z, w."},"s":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Scale."}}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"props":{"type":"object","additionalProperties":true,"properties":{"bone":{"type":"string","description":"VRM humanoid bone name.","default":"rightHand"}}},"behaviours":{"type":"array","items":{"type":"object","required":["use"],"properties":{"use":{"type":"string"}},"allOf":[{"if":{"properties":{"use":{"const":"wander"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"greet"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"switchedBy"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"hinge"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"noticeViewer"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"brain"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"player"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true}},{"if":{"properties":{"use":{"const":"pickup"}},"required":["use"]},"then":{"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}}]}}},"additionalProperties":true},
    "behaviour.wander": {"type":"object","required":["use"],"description":"Walk to random reachable points within a radius.","properties":{"use":{"const":"wander"},"radius":{"type":"number","minimum":0,"default":4},"pause":{"type":"number","minimum":0,"default":2}},"additionalProperties":true},
    "behaviour.greet": {"type":"object","required":["use"],"description":"Says a line to someone who comes close (looking at them), then waits a while before greeting again.","properties":{"use":{"const":"greet"},"target":{"type":"string","description":"Who to greet (the player)."},"radius":{"type":"number","minimum":0,"default":2},"clip":{"type":"string","description":"A voice line (.wav) with its timings beside it."},"text":{"type":"string","description":"The caption (or the line, without a clip)."},"cooldown":{"type":"number","minimum":0,"default":20}},"additionalProperties":true},
    "behaviour.switchedBy": {"type":"object","required":["use"],"description":"Shown while an item is in a state (a lamp lit while its switch is on), hidden otherwise.","properties":{"use":{"const":"switchedBy"},"item":{"type":"string","description":"The item (a switch)."},"state":{"type":"string","default":"on"}},"additionalProperties":true},
    "behaviour.hinge": {"type":"object","required":["use"],"description":"A door hinge: a revolute joint with limits and a motor.","properties":{"use":{"const":"hinge"},"axis":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"default":[0,1,0]},"openAngle":{"type":"number","minimum":-180,"maximum":180,"default":100},"locked":{"type":"boolean","default":false}},"additionalProperties":true},
    "behaviour.noticeViewer": {"type":"object","required":["use"],"description":"Sees the person at the camera (@vrmxg/sense): looks at them when they appear and away when they leave, answers a wave and a nod with animation slots, and can say lines. Needs the sense service and the scene's viewer node.","properties":{"use":{"const":"noticeViewer"},"answers":{"type":"object","additionalProperties":{"type":"string"},"default":{"wave":"greet","nod":"nod"},"description":"Camera event (wave, nod, shake, point) → the animation slot that answers it."},"say":{"type":"object","additionalProperties":{"type":"string"},"description":"Camera event (appeared, wave, nod, shake, point) → a line to say."},"smile":{"type":"string","description":"The expression shown when someone appears.","default":"happy"}},"additionalProperties":true},
    "behaviour.brain": {"type":"object","required":["use"],"description":"An NPC brain: perception, memory, a behaviour tree with utility choices, and the action vocabulary. A role preset (server, customer, wanderer; host, conversationPartner, follower, which a director can talk with), a brain document in the project (brains/hana.json) or a preset object; vars override its blackboard plan.","properties":{"use":{"const":"brain"},"preset":{"anyOf":[{"type":"string","enum":["server","customer","wanderer","host","conversationPartner","follower"]},{"type":"string","pattern":"\\.json$"},{"type":"object"}],"default":"wanderer","description":"A role preset, a brain document's path, or a preset object ({ plan, senses, tree })."},"vars":{"type":"object","description":"Blackboard values over the preset's plan."},"tickEvery":{"type":"number","minimum":1,"description":"Think every n steps (four times slower far from the player).","default":1},"lodDistance":{"type":"number","minimum":0,"default":25},"senses":{"type":"object","description":"Perception settings over the preset's: sight { range, fov, every }, hearing { sensitivity }, proximity { radius }, maxAge, decay."}},"additionalProperties":true},
    "behaviour.player": {"type":"object","required":["use"],"description":"Drives a Character from the move / jump / run actions, relative to the current camera (split screen: its player's actions and camera).","properties":{"use":{"const":"player"},"walkSpeed":{"type":"number","minimum":0,"default":1.4},"runSpeed":{"type":"number","minimum":0,"default":4},"player":{"type":"number","minimum":1,"maximum":4,"description":"Which player: 2 reads the p2.* actions and player 2's camera.","default":1}},"additionalProperties":true},
    "behaviour.pickup": {"type":"object","required":["use"],"description":"Can be picked up; equips a VRMXW if the item names one.","properties":{"use":{"const":"pickup"},"item":{"type":"string"}},"additionalProperties":true}
  }
}
