Space
Context: object.virtual.space
This document describes the data structure for a virtual space, a large digital object intended for entering and navigating through it, often representing architectural creations or environments. Virtual spaces are commonly used in virtual worlds, games, and other digital applications to provide immersive experiences and interactions.
Fields
| Key | Type | Description | Mandatory |
|---|---|---|---|
| class | string | Class or category of the virtual space | Yes |
| subclass | string | Subclass or specific type | Yes |
| spawnPoints | array | Array of spawn points for the virtual space | No |
| portals | array | Array of portals within the virtual space | No |
Spawn Point Object
| Key | Type | Description | Mandatory |
|---|---|---|---|
| name | string | Human-readable name of the spawn point | Yes |
| device | string | Device type the spawn point is designed for | Yes |
| platform | string | Platform the spawn point is designed for | Yes |
| position | string | 3D position of the spawn point in the space | Yes |
| rotation | string | 3D rotation of the spawn point in the space | No |
| scale | string | 3D scale of the spawn point in the space | No |
Portal Object
| Key | Type | Description | Mandatory |
|---|---|---|---|
| name | string | Human-readable name of the portal | Yes |
| hierarchy | string | Hierarchy or structure of the portal | Yes |
| destination | string | Identifier for the portal's destination space | Yes |
| position | string | 3D position of the portal in the space | Yes |
| rotation | string | 3D rotation of the portal in the space | No |
| scale | string | 3D scale of the portal in the space | No |
Example
{
"virtualSpace": {
"class": "Architecture",
"subclass": "Building",
"spawnPoints": [
{
"name": "Main Entrance",
"device": "Desktop",
"platform": "Windows",
"position": "0,0,0",
"rotation": "0,0,0",
"scale": "1,1,1"
}
],
"portals": [
{
"name": "Portal to Garden",
"hierarchy": "Main Hall",
"destination": "GardenArea",
"position": "10,0,5",
"rotation": "0,90,0",
"scale": "1,2,1"
}
]
}
}