pc.Batch
Holds information about batched mesh instances. Created in pc.BatchManager#create.
Summary
Properties
| batchGroupId | Link this batch to a specific batch group. |
| dynamic | Whether this batch is dynamic (supports transforming mesh instances at runtime). |
| meshInstance | A single combined mesh instance, the result of batching. |
| model | A handy model object. |
| origMeshInstances | An array of original mesh instances, from which this batch was generated. |
Details
Constructor
Batch(meshInstances, dynamic, batchGroupId)
Parameters
| meshInstances | pc.MeshInstance[] | 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
numberbatchGroupId
Link this batch to a specific batch group. This is done automatically with default batches.
pc.MeshInstance[]origMeshInstances
An array of original mesh instances, from which this batch was generated.