Attempting to collide with shadows

I’m making a game where you do 2d platforming on the silhouettes of 3d objects. I used a scene capture 2d to fake a shadow onto a sheet, and I’m wanting to do the platforming on it, but I’m having a hard time figuring out how to do the collision, if it’s even possible.

Here’s my setup. I want the square to be able to platform onto the shadows, but no matter what I do I can’t find a way to do it.

My first thought was to use WPO but quickly realized that doesn’t effect collision. Then I tried scaling up the wrenches based on its distance to the scene capture, but because of perspective it doesn’t line up. I also tried going orthographic to get rid of the perspectiveness but then it removes the depth of field blur I have on to fake shadow blur, which to me is a really important stylization I was hoping to keep.

I feel like I’m at an impasse and will just have to forfeit the blur effect, but I figured I’d ask around here to see if anyone has any ideas on this very niche problem.

Solved it!! Took a long time but I found the solution. I’ll explain it just in case someone else has this odd specific issue

Basically, I flipped everything around so now my scene capture is where the camera is, and the wrenches are here, but they’ll be invisible in game. I created a pyramid shape to use as the collision for my character, and it is connected to it with joints. The joints give the cube full motion while making the collision always point towards it.

Now due to the shape of the pyramid it will perfectly collide with the wrenches in a way to make it seem like it’s on it’s shadow. This took so much time to figure out lol, hope this helps someone else

1 Like