0.0.13 • Published 5 months ago

bvh.js v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

npm Quality Gate Status DeepScan grade Stars BundlePhobia

Work in progress... will be released soon :)

Live example: https://stackblitz.com/edit/three-ezinstancedmesh2-dynamic-bvh?file=index.ts

Create a BVH from a AABB array. You can set whetever value to each node.

Build method: top-down or insertion one by one.

Implemented API:

createFromArray insert insertRange move delete clear

traverse rayIntersections frustumCulling frustumCullingLOD closestPointToPoint intersectsBox intersectsSphere intersectsRay isNodeIntersected

TODO:

traverseByScore intersectsRayFirst intersectsBVH closestPointToBVH getAllCollision getNearestObject

experiment rotation with N leaves and max depth

References

0.0.13

5 months ago

0.0.12

7 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago