Can someone provide a snippet of how I would raycast in all directions?
For example, not forward, not backward, not up, not down, but all of those and in between.
Imagine a point in space shooting a bunch of rays in the pattern of a growing sphere.
Does this make sense?
I’d use a spherecast instead, you’re potentially firing an infinite number of rays or at least a very large number to get decent coverage which will eat away at your performance like no body’s business
I looked at the script reference on sphere casting, but only found an xample on capsule casting.
if you need see only objects visible then overlapsphere can see things behind walls, so for reference here are some formulas to send a spherecast in many directions, else a raycast.
http://www.softimageblog.com/archives/115
search for disco ball and phi “points on a sphere” formulas