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