Constructor
new BatchGroup(id, name, dynamic, maxAabbSize, layersopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
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 |
Array.<Number> |
<optional> |
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:
Name | Type | Attributes | Description |
---|---|---|---|
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. | |
id |
Number | Unique id. Can be assigned to model and element components. | |
name |
String | Name of the group. | |
layers |
Array.<Number> |
<optional> |
Layer ID array. Default is [pc.LAYERID_WORLD]. The whole batch group will belong to these layers. Layers of source models will be ignored. |
- Source: