raycastAll

fun <T : RayHit?> raycastAll(ray: Ray, resultBuffer: ArrayList<T>, processResult: BiConsumer<T, Collider>?, allocateResult: Supplier<T>): Int

Deprecated

Use hitTest

Replace with

hitTest(ray)