API Reference

Class List

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

meshInstancespc.MeshInstance[]

The mesh instances to be batched.

dynamicboolean

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

batchGroupIdnumber

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.

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.

pc.MeshInstance[]origMeshInstances

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