API Reference

Class List

pc.BatchGroup

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

Summary

Properties

dynamicWhether objects within this batch group should support transforming at runtime.
idUnique id.
layersLayer ID array.
maxAabbSizeMaximum size of any dimension of a bounding box around batched objects.
nameName of the group.

Details

Constructor

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

Parameters

idNumberUnique id. Can be assigned to model and element components.
nameStringThe name of the group.
dynamicBooleanWhether objects within this batch group should support transforming at runtime.
maxAabbSizeNumberMaximum size of any dimension of a bounding box around batched objects. pc.BatchManager#prepare will split objects into local groups based on this size.
layersNumber[]Layer ID array. Default is [pc.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 and element components.

Number[]layers

Layer ID array. Default is [pc.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. pc.BatchManager#prepare will split objects into local groups based on this size.

Stringname

Name of the group.