Constructor
new Batch(meshInstances, dynamic, batchGroupId)
Parameters:
Name | Type | Description |
---|---|---|
meshInstances |
Array | The mesh instances to be batched. |
dynamic |
Boolean | Whether this batch is dynamic (supports transforming mesh instances at runtime). |
batchGroupId |
Number | Link this batch to a specific batch group. This is done automatically with default batches. |
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
origMeshInstances |
Array | An array of original mesh instances, from which this batch was generated. | |
meshInstance |
pc.MeshInstance | A single combined mesh instance, the result of batching. | |
model |
pc.Model | A handy model object | |
dynamic |
Boolean | Whether this batch is dynamic (supports transforming mesh instances at runtime). | |
batchGroupId |
Number |
<optional> |
Link this batch to a specific batch group. This is done automatically with default batches. |
- Source: