raycast

fun raycast(ray: Ray, resultHit: RayHit): Collider?

Deprecated

Use hitTest

Replace with

hitTest(ray)