diff --git a/src/core/InstancedMeshBVH.ts b/src/core/InstancedMeshBVH.ts index 4a46a67..c65c6ed 100644 --- a/src/core/InstancedMeshBVH.ts +++ b/src/core/InstancedMeshBVH.ts @@ -67,7 +67,7 @@ export class InstancedMeshBVH { this.bvh.createFromArray(objects as unknown as number[], boxes, (node) => { this.nodesMap.set(node.object, node); - }); + }, this._margin); } public insert(id: number): void {