From 59ebc89916543ba390c60e547b831aa257a068de Mon Sep 17 00:00:00 2001 From: ANDREA GARGARO Date: Tue, 26 Nov 2024 22:30:04 +0100 Subject: [PATCH] Fix create bvh margin --- src/core/InstancedMeshBVH.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {