By wrapping every raycast call I was able to figure out what’s happening, but I wonder if this particular warning might be more useful with some more context about what file/line/stack it’s coming from.
Yes, that would probably be helpful. It is unfortunate that we return nil when there are no hits instead of an empty table. If we used nil as an indicator that something went wrong then developers could assert and get a stacktrace.