pc.BatchGroup
Holds mesh batching settings and a unique id. Created via pc.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])
Parameters
| id | number | Unique id. Can be assigned to model and element components. |
| name | string | The name of the group. |
| dynamic | boolean | Whether objects within this batch group should support transforming at runtime. |
| maxAabbSize | number | 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. |
| layers | number[] | 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
Layer ID array. Default is [pc.LAYERID_WORLD]. The whole batch group will belong to these layers. Layers of source models will be ignored.
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.