API Reference

Class List

pc.Batch

Holds information about batched mesh instances. Created in pc.BatchManager#create.

Summary

Properties

batchGroupIdLink this batch to a specific batch group.
dynamicWhether this batch is dynamic (supports transforming mesh instances at runtime).
meshInstanceA single combined mesh instance, the result of batching.
modelA handy model object
origMeshInstancesAn array of original mesh instances, from which this batch was generated.

Details

Constructor

Batch(meshInstances, dynamic, batchGroupId)

Parameters

meshInstancesArrayThe mesh instances to be batched.
dynamicBooleanWhether this batch is dynamic (supports transforming mesh instances at runtime).
batchGroupIdNumberLink 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.

Booleandynamic

Whether this batch is dynamic (supports transforming mesh instances at runtime).

pc.MeshInstancemeshInstance

A single combined mesh instance, the result of batching.

pc.Modelmodel

A handy model object

ArrayorigMeshInstances

An array of original mesh instances, from which this batch was generated.