Hello. For the last several days I’ve been trying to figure out how to have physics be the centre for movement when certain statements come back as true. In particular, sliding logic in the style of Apex Legends.
I’ve gotten some semi-alright source engine (style) movement in my project, crouching, and for the most part it’s alright. The issue that I’m facing is that no matter what statements come back as true, and whatever parameters are called, the crouching will not go into a state of ‘sliding’ – basically free-form sliding.
Furthermore, I can’t - for the life of me - figure out how to even return an appropiate value. For instance:
const CROUCH_MULTIPLIER = 0.66
const SLIDE_MULTIPLIER =
The value for the slide multiplier would have to take into a single variables, of which I propose could be an overall velocity - but this has been no luck. Secondly, I’ve spend (way to much time) on trying to figure out how the current speed/velocity would affect the multiplier. The majority of this time I’ve spent with both variables as one, but one to many crashes has caused me to reevaluate why I’m doing this. Anyways, help greatly appreciated : (As for additional reference, I’ve used godot/gds once in the past, but haven’t touched it for a long time)