rayTest method

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

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

Implementation

void rayTest(Vec3 from, Vec3 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);
  }
}