Shadow Stealth - "hide in the shadows" plugin

Hi @Vathusmoure,

Movable rect lights are not supported at the moment. It’s something I’m planning for an update in some time.

The capsule collider is a better fit for spot lights. Spot light shape is not a real cone, it’s a cone-shaped section of a sphere. To fit the spot light shape into a cone you would have to build a cone with a height equal to the spot light radius. For a large spot light angle (closing to 180) the cone would end up huge. here’s no such problem with the capsule collider and it’s also better for performance then cone. Also, the collide is only to check if we’re in the visinity of the spot light. Before performing the trace, the socket is tested against the actual shape of the spot light.

In the plugin, you are provided with a floating-point value that represents the intensity of the light falling on your character. What you’ll do with that value is totally up to you. In the example project, I’ve presented a little more complicated implementation, but in your game, you can choose to just toggle ‘stealth’ state on a set value of the light intensity. You can use events, that are built into the plugin for more convenient implementation.

If you didn’t check it up yet, please download the binary build of the example project here.
You can also read more about the plugin features and how to use them in the documentation.

Btw, thanks for taking an interest in my plugin :slight_smile: