Open mvaligursky opened 2 years ago
We can also consider construction of BVH from the mesh and implement fast ray to BVH intersection. Reference: https://jacco.ompf2.com/2022/04/18/how-to-build-a-bvh-part-2-faster-rays/
That would be super useful to have, this three.js library does something similar. When working with three.js it's very easy to enable on any mesh instance and do fast raycast lookups.
We should consider support for mesh picking without using physics engine.
There's an older PR which implements this, but it would need to be updated to latest changes with the engine, or at least used as a base: https://github.com/playcanvas/engine/pull/989