@three.ez/instanced-mesh
Version:
Enhanced InstancedMesh with frustum culling, fast raycasting (using BVH), sorting, visibility management and more.
20 lines • 1.09 kB
TypeScript
import { Matrix4, Skeleton } from 'three';
declare module '../InstancedMesh2.js' {
interface InstancedMesh2 {
/**
* Initialize the skeleton of the instances.
* @param skeleton The skeleton to initialize.
* @param disableMatrixAutoUpdate Whether to disable the matrix auto update of the bones. Default is `true`.
*/
initSkeleton(skeleton: Skeleton, disableMatrixAutoUpdate?: boolean): void;
/**
* Set the bones of the skeleton to the instance at the specified index.
* @param id The index of the instance.
* @param updateBonesMatrices Whether to update the matrices of the bones. Default is `true`.
* @param excludeBonesSet An optional set of bone names to exclude from updates, skipping their local matrix updates.
*/
setBonesAt(id: number, updateBonesMatrices?: boolean, excludeBonesSet?: Set<string>): void;
/** internal */ multiplyBoneMatricesAt(instanceIndex: number, boneIndex: number, m1: Matrix4, m2: Matrix4): void;
}
}
//# sourceMappingURL=Skeleton.d.ts.map