Skip to content

Class: EntityCreator

Defined in: packages/core/src/level/level-entity-creator.ts:28

Creates ECS entities from Three.js Object3D graphs and applies IWSDK components found in GLXF meta_spatial.components extras.

Remarks

  • Only nodes present in the GLXF nodes array are converted to entities.
  • Component ids are matched against the registry by com.iwsdk.components.<id>.
  • Panel UI extras are mapped to PanelUI with JSON config paths.

Constructors

Constructor

new EntityCreator(): EntityCreator

Returns

EntityCreator

Methods

createEntitiesFromObject3D()

static createEntitiesFromObject3D(object, nodes, parentEntity, world): void

Defined in: packages/core/src/level/level-entity-creator.ts:29

Parameters

object

Object3D

nodes

Object3D<Object3DEventMap>[]

parentEntity

Entity

world

World

Returns

void