I am curious if there is a way to detect what area the shadow of a unit is covering?
Right now I'm thinking of taking the position of the sun/lighting compared to the position of the unit and using a offset to determine the general position of his shadow.
However before I went down that path I was curious if anyone knew of a easier way to find the area of a units shadow? Perhaps even a more exact method then just a giant circle behind the unit like what my above idea is gonna function like.
I am curious if there is a way to detect what area the shadow of a unit is covering?
Right now I'm thinking of taking the position of the sun/lighting compared to the position of the unit and using a offset to determine the general position of his shadow. However before I went down that path I was curious if anyone knew of a easier way to find the area of a units shadow? Perhaps even a more exact method then just a giant circle behind the unit like what my above idea is gonna function like.
Shadows are only functions of the lighting system and afaik there is no way to detect them without an approximation like what you suggest.
Yah, figured that would be the case :/ Thanks for the reply though.