Skip to main content

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

KeyTypeDescriptionMandatory
classstringClass or category of the virtual spaceYes
subclassstringSubclass or specific typeYes
spawnPointsarrayArray of spawn points for the virtual spaceNo
portalsarrayArray of portals within the virtual spaceNo

Spawn Point Object

KeyTypeDescriptionMandatory
namestringHuman-readable name of the spawn pointYes
devicestringDevice type the spawn point is designed forYes
platformstringPlatform the spawn point is designed forYes
positionstring3D position of the spawn point in the spaceYes
rotationstring3D rotation of the spawn point in the spaceNo
scalestring3D scale of the spawn point in the spaceNo

Portal Object

KeyTypeDescriptionMandatory
namestringHuman-readable name of the portalYes
hierarchystringHierarchy or structure of the portalYes
destinationstringIdentifier for the portal's destination spaceYes
positionstring3D position of the portal in the spaceYes
rotationstring3D rotation of the portal in the spaceNo
scalestring3D scale of the portal in the spaceNo

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"
}
]
}
}