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