intersectBVH method
Performs a ray/BVH intersection test and stores the intersection point to the given 3D vector. If no intersection is detected, null is returned.
Implementation
Vector3? intersectBVH(BVH bvh, Vector3 result ) {
return bvh.root?.intersectRay( this, result );
}