rayTest method

void rayTest(
  1. Vector3 from,
  2. Vector3 to,
  3. dynamic result
)

Raycast test @deprecated Use .raycastAll, .raycastClosest or .raycastAny instead.

Implementation

void rayTest(Vector3 from, Vector3 to, dynamic result) {
  if (result is RaycastResult) {
    // Do raycastClosest
    raycastClosest(from, to, RayOptions()..skipBackfaces = true , result);
  }
  else {
    // Do raycastAll
    raycastAll(from, to, RayOptions()..skipBackfaces = true, result);
  }
}