Skip to main content

Overview

The WallNode 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

Source: /home/daytona/workspace/source/packages/core/src/schema/nodes/wall.ts

Fields

Inherited from BaseNode

string
required
Unique wall identifier.Format: wall_{randomString}Example: "wall_a1b2c3d4e5f6g7h8"
string
required
Always set to "wall".Default: "wall"
string
Optional name for the wall.Example: "North Wall", "Exterior Wall A"
string | null
required
Reference to the parent level’s ID.Example: "level_abc123"Default: null
boolean
Controls wall visibility.Default: true
CameraSchema
Optional camera viewpoint for the wall.
any
Custom metadata for the wall.Default: {}

Wall-Specific Fields

[number, number]
required
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.
[number, number]
required
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.
number
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.
number
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.
'interior' | 'exterior' | 'unknown'
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
Used for cutaway rendering and visualization modes.
'interior' | 'exterior' | 'unknown'
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
Used for cutaway rendering and visualization modes.
Array<string>
required
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)