intersectBVH method

Vector3? intersectBVH(
  1. BVH bvh,
  2. Vector3 result
)

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 );
}