Saltar al contenido principal

three

Description

This library provides an interface to the rendering engine.

Properties

PropertyTypeDescription
sceneThreeEntry point for three.js API.
rendererWebGLRendererThe three.js renderer.
activeCameraCameraHandle to the active camera.
entityToObjectMap<eid, Object3D>Map of entities to three.js objects.

Functions

entityToObject

Retrieves the corresponding three.js Object3D for a given entity.

world.three.entityToObject.get(eid: Eid) // -> Object3D