Hello, I have created 3 objects to simulate a light on an object, these objects are "the light", "a chest" and "the shadow", make the shadow position itself opposite the chest at the same distance from the light, but I have a problem with the shadow size logic depending on how close the "light" object is to "the chest".
How can I do that the closer the object "the light" is to the object "chest", the object "shadow" is bigger.
I'm trying to make a mechanic that uses the shadows of the objects to transform them into platforms, that's why I don't want to use the shadowcaster.
Thanks in advance.