PackedEntity
An entity as one header plus one byte buffer holding its arrays, from packEntity: how the model cache stores entities and how serveGenerators posts them (one buffer to transfer).
Defined in: engine/src/worker/cache.ts:49
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
bytes | Uint8Array<ArrayBuffer> | The arrays, back to back (each 4-byte aligned). | engine/src/worker/cache.ts:53 |
head | Record<string, unknown> | The entity without its arrays, plus where each array lies in bytes. Plain data. | engine/src/worker/cache.ts:51 |
ModelCacheOptions
Options for openModelCache.
PlacementWorker
A worker that bakes static placements, from makeSceneWorker (or the older makePlacementWorker). Give it to makeInstanceLayer(target, { placement }), which registers models and bakes for you; the methods are there for hosts that drive Renderer.placementInput / applyPlacement themselves. One...