This demo shows how to use the dot product to detect the angle of a slope in a platform game. It's made with the Godot game engine.

Nathan Lovato

I'm a courteous game designer, with a taste for open source. I'll share all I know.