BVHParams
Defined in: core/InstancedMeshBVH.ts:13
Parameters for configuring the BVH (Bounding Volume Hierarchy).
Properties
accurateCulling?
optional
accurateCulling:boolean
Defined in: core/InstancedMeshBVH.ts:33
Enables accurate frustum culling by checking intersections without applying margin to the bounding box.
Default
true
getBBoxFromBSphere?
optional
getBBoxFromBSphere:boolean
Defined in: core/InstancedMeshBVH.ts:28
Uses the geometry bounding sphere to compute instance bounding boxes. Otherwise it’s calculated by applying the object’s matrix to all 8 bounding box points. This is faster but less precise. Useful for moving objects. Only works if the geometry’s bounding sphere is centered at the origin.
Default
false
margin?
optional
margin:number
Defined in: core/InstancedMeshBVH.ts:20
Margin applied to accommodate animated or moving objects. Improves BVH update performance but slows down frustum culling and raycasting. For static objects, set to 0 to optimize culling and raycasting efficiency.
Default
0