Make it so that shadow always projects downwards

Hi all, I’m trying to implement a system where object’s shadow are always under the object. Think the shadow having the exact x and y as its parent object, with only the y being the difference.

Gameplay wise, this enables mechanics such as warning a falling meteor is about to smash on a ground on a particular spot.

I tried positioning the sun directly above the player, but can’t quite get it to work. The shadows always projects sideways while in the air.

Short of writing my own shadow system, which brings its own complexities, had anyone tried doing something similar and figured out a way?

If you have flat ground, you can create cylider / thin copy of object and place it on the ground under object. But maybe you will need to make hard calculations for objects like wedge.
Easier way: try manipulate with Lighting.GeographicLatitude.
If you want Latitude way, try change

Lighting.ClockTime = 12
Lighting.GeographicLatitude = 23
Lighting.ShadowSoftness = 0 ← if you need precize shadows.

that worked! thank you so much!

1 Like