
The Shadow Casting System creates interactive shadow colliders, adding realism and dynamic physics-based interactions to enhances visual depth and gameplay mechanics in your project.BRING YOUR SHADOWS TO LIFE!!!The Shadow Casting System dynamically generates 2D colliders for object shadows, allowing them to interact physically with the environment. It works by casting rays from a light source to detect shadow outlines, then constructs accurate colliders using a convex hull algorithm. This system is highly customizable, supporting various 3D objects and lighting setups. It is ideal for puzzle games, platformers, and physics-based mechanics where shadow-based interactions enhance gameplay. By adjusting light settings and object properties, developers can fine-tune the visual and physical behavior of shadows to fit their project's unique style.This asset uses the Gas Wall Lantern 3D Model by codeinfernogames, the 3D (Mese) Crystal model by rubberduck, the simple 3d props models by DeadKir ,Soccer Ball sprite by gothicfan95, [2D] Wooden Box sprite by from opengameart.org under the Creative Commons 0 license.(see Third-Party invoices.txt file in the package for details)Dynamic Shadow Colliders: Generates real-time 2D colliders for shadows based on object geometry.Raycasting System: Casts rays from the light source to detect shadow outlines on the wall.Convex Hull Algorithm: Calculates the perimeter of the shadow to create an accurate collider.Real-time Updates: Recalculates shadows when the light source or objects move.Customizable Light Behavior: Toggle light on/off and adjust shadow properties.Optimized Performance: Uses Unity’s Mesh API and NativeArray for efficient vertex processing.Easy Integration: Works with any convex 3D object and supports custom light setups.