A month or so, I wrote a 3rd person character controller from scratch, basically as a learning experience, but I’m also working towards starting a game using it eventually. I got it written and working fine using a capsule for a character, but there were some complications when I started to extend it.
First, handling camera movement was a little glitchy when the cursor was over a UI element, or when I had a menu displayed.
And now, I’m attempting to replace the capsule with a Mixamo model and hook up the animations to play at the proper times and I realize that my controller is a mess. Recently I read in a thread here that said it’s good advice to separate all your inputs from the player movement and camera movement code (which I didn’t do), so that’s complicated things too.
So, I’m re-writing it from scratch, attempting to make it more modular, and trying to work in the animations as I go. I’m also hoping to use a game state manager to control everything once I’m done, so I want to set it up to work with that eventually. Unfortunately, I’m just not getting my head around how to do it all and make everything work together well.
I think part of my problem is not knowing when to use Update() vs. FixedUpdate(). I tried grabbing all the input in Update, and I had my movement code in FixedUpdate in another script, but things didn’t seem to work well that way - it seemed like keypresses got missed and it just didn’t feel solid.
So, TLDR; does anyone know of a good tutorial or blog post that would help set up a modular input/camera control system, linked with Mixamo animations?