Facepunch / sbox-issues

175 stars 12 forks source link

CharacterController seems to snap to the ground within its StepHeight when falling #5847

Open Xenthio opened 3 months ago

Xenthio commented 3 months ago

Describe the bug

the default CharacterController component snaps to the ground when the distance to the ground is within its StepHeight.

To Reproduce

  1. Create a small CharacterController setup
  2. Jump and watch falling back to the ground snap
  3. Set StepHeight to 0 and watch it fix

Expected behavior

It should smoothly land on the ground

Media/Files

No response

Additional context

No response

aylaylay commented 3 months ago

Does this still happen?

Xenthio commented 3 months ago

Does this still happen?

Seems to be fixed?

Xenthio commented 3 months ago

Wait hold on maybe not

Xenthio commented 3 months ago

Nah it's not fixed. My bad. I thought it was but I forgot I had a workaround active.

aylaylay commented 3 months ago

The character controller we have doesn't seem to do this?

Xenthio commented 3 months ago

The character controller we have doesn't seem to do this?

It's the built in one I'm using, check hc1 as that's the codebase I'm building off. I can also invite you to the repository if you'd like.

Make sure stepheight is set, you can see it even more easily if you turn down fixed update rate

aylaylay commented 3 months ago

I still dont see this on our character controller

Xenthio commented 3 months ago

I still dont see this on our character controller

So apparently, Nobody else but me has this issue. I have no clue what's going on here...

Xenthio commented 3 months ago

Okay apparently ITS NOT JUST me who sees this one other person does.