part of my (WIP) walking simulator, so many maths
used this for the maths: https://c1.staticflickr.com/7/6058/6323380287_6da676c0a4_b.jpg