|
Is there a way to raycast without a direction to see what colliders are directly around an object? I'm trying to create a dynamic lighting script, so I need to be able to check which objects the light can "see". My other idea was to use a SphereCast with collision so that I could check which objects were adjacent to the light, and that the light could see. Are either of these options possible? Thanks, Chad.
(comments are locked)
|
|
Cool, you linked to one of my questions. :)
Jan 21 '11 at 07:37 PM
OrangeLightning
(comments are locked)
|

I'd be interested in exactly what you are trying to do, maybe there's a way to script things (or shaders) to do what you need.
Well, what I'm trying to do is contact the cubes around a GameObject acting as a lightsource and set their main color to be a higher or lower value depending on the distance. Is there a way to do that that I'm just missing? Thanks,