Another look at my script to project vertices onto any plane. It makes for a neat way to crate interactable shadows when attached to a light source. #indiedev
Comments
Log in with your Bluesky account to leave a comment
The orientation of the receiving plane is reconstructed from the position of the points so you could move and rotate it at runtime if you wanted to.
This also works for multiple objects and light sources without noticeable performance cost.
It's got its limitations of course. The algorithm that finds the outline of the projection discards any points inside the shape. Therefore every shadow gets turned into a convex collider even if there should be a hole or a indentation in its outline.
Comments
This also works for multiple objects and light sources without noticeable performance cost.