I’m new to Unity and I’ve seen a thing that’s bothering me for some while. I’ve looked up multiple things such as shadow clipping and bias but none seem to help.
The gist of the scene is I have a platform cube w/ dimensions (18,1,10000) and a player cube w/ dimensions (1,1,1) on top of it which moves forward to avoid obstacles on the long platform. I’m using a directional light to cast a shadow from the top of the platform, slightly angled.
After moving the cube to around z = 70 - 80, when i fall off the platform with my player cube the platform’s shadow stops rendering on the player cube. Everything else, even the obstacle’s shadows pass through the platform to get cast on the player cube after that point but the platform’s shadow strangely disappears. Camera clipping distances don’t seem to be the issue too as the camera follows the player cube at a fixed distance.
I’ve even made the platform scale smaller (18, 1, 4000) just in case and the same issue occurs.
Players and all objects are positioned at (0,0,0) just the platform at (-1, 0 , 4995) for the sake of ease and for and endless platform vibe.
If anyone can help me out it’d be much appreciation, I’ve been racking my head over this for a while.