my FPS script awsd+jumping wall sliding

Forward is just Vec3(0,1,0) nothing magical

You can move the definitions into the top of the file.