voxolith

FromVoxOptions

Options for entityFromVox.

Defined in: engine/src/vox.ts:20

Properties

PropertyTypeDescriptionDefined in
anchor?"base" | "centre" | [number, number, number]Anchor inside the cropped box. Default "base": horizontal centre, y = 0, which is what you want for anything that stands on the ground.engine/src/vox.ts:31
id?stringEntity.id. Default "vox".engine/src/vox.ts:22
kind?stringEntity.kind. Default "model".engine/src/vox.ts:24
meta?Record<string, unknown>Merged into Entity.meta after source and srcSize.engine/src/vox.ts:33
rolePrefix?stringRole id prefix; roles come out as ${prefix}.0, .1, ...engine/src/vox.ts:26

On this page