So I've been developing a SA style gameplay system in Unity, I'm having some small issues with the main controller for the player character. The issue seems to be around input, sometimes the player won't move, sometimes they move in the wrong direction and sometimes their velocity seems to reach silly amounts that shouldn't be possible. I think it's a transformation issue taking local input and turning it into world space but I can't find that it could also have to do with quaternions though. here's the source code https://pastebin.com/t83Su3p6