Well if you wanted to be a little more creative and perhaps clever, you'd put a pivot 1000 units directly above the player and cast down to it, if you see the player do nothing, if you don't use the above code. That way you only need to have one small raycast per loop and not have to worry about putting loads of code for objects.
Also you could find out what was intefering and adapt the sahdow based on that response. Just needs a little creative thinking that is all.
IPete2.
Also you could find out what was intefering and adapt the sahdow based on that response. Just needs a little creative thinking that is all.
IPete2.