Hidy-ho! I'm making a 3D first person horror game using a node-based state machine (very much based off of The Shaggy Dev's model) for my character controller, mostly as a learning exercise than anything else. I've found the process super fun but now I'm attempting to implement controller support (doing it early so I don't run into big issues later) and I just can't figure out how to get smooth analog motion. Right now I'm just using the basic built-in movement script (shown in the image) but only cause I've tried some other solutions that didn't work so I just went back to basics while I tested other systems. I have no problem ripping it out entirely and coming up with something from scratch.
Basically, I just need help writing up a dead-simple movement script that allows seamless switching between keyboard and joystick inputs. I am not worried about acceleration or friction at this time as I am not going to have different surface types in this game. I think I'd like a circular deadzone as well.
I also would like some help getting the camera to work with the right analog stick as well, I haven't looked into that part at all yet but I figure I'd rather just get help on that here too instead of fiddling anymore with this as I don't want to get frustrated for my lack of knowledge.
Thanks!