BVHParams
Defined in: core/InstancedMeshBVH.ts:14
Parameters for configuring the BVH (Bounding Volume Hierarchy).
Properties
accurateCulling?
optionalaccurateCulling:boolean
Defined in: core/InstancedMeshBVH.ts:34
Enables accurate frustum culling by checking intersections without applying margin to the bounding box.
Default
truegetBBoxFromBSphere?
optionalgetBBoxFromBSphere:boolean
Defined in: core/InstancedMeshBVH.ts:29
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
falsemargin?
optionalmargin:number
Defined in: core/InstancedMeshBVH.ts:21
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