小模型 Vox#

Vox 是小型 (32x32x32) .vox 型号,目前每个地块仅限 200 个。这些通常是使用 Magicavoxel 制作的。

vox-example.png

Editor 编辑器#

vox-model-editor

URL#

.vox 文件的 URL。

备注

模型示例: https://cdn.discordapp.com/attachments/573736707984457738/733461614107426836/aliem.vox

Scale to fit 调整缩放#

(可选);调整 vox 的大小以适合网格。

Collidable 可碰撞#

(可选);使 vox 模型成为可碰撞对象。

Colors 颜色#

(可选); 允许您更改 vox 模型的颜色。 如果您的 vox 颜色超过 5 种,则不会出现此选项。

脚本属性#

String; Links must be https:// and must finish with a vox extension .vox Has to link to a 32x32x32 vox model or smaller.

get()

feature.get('url')
// returns: "https://..."

set()

feature.set({'url':"https://www.myurl.com/file.vox"})

default

""

String; Links must be https://.

get()

feature.get('link')
// returns: "https://..."

set()

feature.set({'link':"https://www.myurl.com/"})

default

""

Boolean

get()

feature.get('collidable')
// returns: false

set()

feature.set({'collidable': true})

default

false

String;

get()

feature.get('type')
/* or */
feature.type

// returns: 'vox-model'