TheFirstPerson icon indicating copy to clipboard operation
TheFirstPerson copied to clipboard

Fast fall to the ground when near end of hard edge

Open guicattani opened this issue 4 years ago • 2 comments

Hey! 😁 The controller is awesome, great work on it! 😁

Wanted to report a bit of an issue I'm getting when near the hard edge of a collider using the first person controller image

I exposed the variables and checked that the yVal is hitting -17 when the groundAngle is 42°. This resets to -3 (the default) when higher than 43°. image

This is a problem because you can "snap" to the floor when this happens sometimes, because you are already at -17 velocity.

guicattani avatar Jan 26 '21 23:01 guicattani

I don't know if that is actually the problem but here's a gif with an example. slope

Here's a "frame-by-frame" of how it went down Grounded image Not grounded (speed is way too fast) image

guicattani avatar Jan 26 '21 23:01 guicattani

Hey thanks for making this issue, sorry for the slow response, can I get you to check if you can reproduce this behaviour with slope slide disabled, I suspect it might be issues with my current sliding calculations. I'm hoping to completely rework the sliding system soon to make it work a lot better as I've had major issues on my own projects with slopes.

boaheck avatar Mar 17 '21 14:03 boaheck