Overview
TheWallNode represents a wall element within a level. Walls are defined by start and end points in 2D space, with thickness and height properties. Walls can have items attached to them (doors, windows, etc.).
Key features:
- Linear wall defined by start/end points
- Configurable thickness and height
- Can host wall-mounted items (doors, windows, fixtures)
- Space detection for interior/exterior classification
Type Signature
/home/daytona/workspace/source/packages/core/src/schema/nodes/wall.ts
Fields
Inherited from BaseNode
Unique wall identifier.Format:
wall_{randomString}Example: "wall_a1b2c3d4e5f6g7h8"Always set to
"wall".Default: "wall"Optional name for the wall.Example:
"North Wall", "Exterior Wall A"Reference to the parent level’s ID.Example:
"level_abc123"Default: nullControls wall visibility.Default:
trueOptional camera viewpoint for the wall.
Custom metadata for the wall.Default:
{}Wall-Specific Fields
Start point of the wall in the level coordinate system.Format:
[x, z] in meters (2D coordinates)Example: [0, 0]The Y coordinate is implied by the level’s elevation.End point of the wall in the level coordinate system.Format:
[x, z] in meters (2D coordinates)Example: [5, 0] (5-meter horizontal wall)The wall extends linearly from the start point to the end point.Thickness of the wall in meters.Example:
0.2 (20cm wall), 0.3 (30cm wall)If not specified, a default thickness may be applied by the renderer.Height of the wall in meters.Example:
2.8 (2.8m ceiling height), 3.0 (3m ceiling height)If not specified, a default height may be applied by the renderer.Classification of the space on the front side of the wall.Default:
"unknown"Values:"interior"- Front side faces an interior space"exterior"- Front side faces the outside"unknown"- Not yet determined
Classification of the space on the back side of the wall.Default:
"unknown"Values:"interior"- Back side faces an interior space"exterior"- Back side faces the outside"unknown"- Not yet determined
Array of item node IDs attached to this wall (doors, windows, fixtures).Default:
[]Example: ["item_door_001", "item_window_001"]Wall-mounted items reference the wall and their position along it using the wallId and wallT fields.Example
Usage
Creating a Simple Wall
Creating Connected Walls
Wall with Space Detection
Adding Wall-Mounted Items
Wall Geometry
The wall is rendered as a 3D rectangular volume:- Length: Distance from start to end point
- Width: Thickness
- Height: Height property
Coordinate System
Walls use 2D coordinates in the level’s XZ plane:- X axis: horizontal (left-right)
- Z axis: horizontal (front-back)
- Y axis: vertical (implied by level elevation and wall height)