API Reference

Class List

BatchGroup

Holds mesh batching settings and a unique id. Created via BatchManager#addGroup.

Summary

Properties

dynamic

Whether objects within this batch group should support transforming at runtime.

id

Unique id.

layers

Layer ID array.

maxAabbSize

Maximum size of any dimension of a bounding box around batched objects.

name

Name of the group.

Details

Constructor

BatchGroup(id, name, dynamic, maxAabbSize, [layers])

Create a new BatchGroup instance.

Parameters

idnumber

Unique id. Can be assigned to model, render and element components.

namestring

The name of the group.

dynamicboolean

Whether objects within this batch group should support transforming at runtime.

maxAabbSizenumber

Maximum size of any dimension of a bounding box around batched objects. BatchManager#prepare will split objects into local groups based on this size.

layersnumber[]

Layer ID array. Default is [LAYERID_WORLD]. The whole batch group will belong to these layers. Layers of source models will be ignored.

Properties

booleandynamic

Whether objects within this batch group should support transforming at runtime.

numberid

Unique id. Can be assigned to model, render and element components.

number[]layers

Layer ID array. Default is [LAYERID_WORLD]. The whole batch group will belong to these layers. Layers of source models will be ignored.

numbermaxAabbSize

Maximum size of any dimension of a bounding box around batched objects. BatchManager#prepare will split objects into local groups based on this size.

stringname

Name of the group.