Hey yall, was hoping someone could help me with what I assume is a simple soloution that I just can't find the answer to.
Firstly, I'm not very experienced with gdscript, kinda learning the ropes as I go.
I've got a fps controller I'm just tinkering with, and I've managed to make him slide (as in apex legends, etc.). It basically increases player's current speed, runs a crouch animation, and "slides" until a timer runs out then stands up. It works just fine, but I'd like to be able to aim all around while still sliding in the same direction. I tried doing a seperate camera "head" rotation while sliding, and it works but I'm having trouble getting the "head" and "player" nodes to line up correctly once the slide is over. If I could just snap the body rotation to match where the head is pointed at the end of the slide, I think that would be just fine. But honestly, I'd rather just be able to rotate the player while also still moving in the set direction, sounds much simpler and that way I could still code some limited controlling of the slide with my movement keys. The problem I'm having with that is that the move_and_slide is constantly keeping up with "forward" being the direction I'm facing, so the slide follows my camera angle and curves the slide. Any ideas on how I could solve this problem with either approach? Again, I'm just tinkering, I know that I'm lacking some basic stuff, but I understand logic and just want to make this work so I can move on to other problems and learn from those as well. Thank you for any help or suggestions!