How should I approach creating a walk on walls script?

Hi everyone, I’ve been eager to create a game that allows players to stick to walls, but I’m clueless as where to even begin. I’m wondering if any of you know some good resources here our outside of the dev forum because I’ve searched everywhere.

I’m aware of posts out there containing working scripts for such a system. However, I want to truly understand the mathematics involved and how they work so I can create, implement, or even improve a currently existing for my game. I am mainly looking for some recommendations for what I should expect to be doing.

Here’s some photos of what I mean if the title wasn’t self-explanatory:
image
image

2 Likes

i think this still works