Facepunch / sbox-issues

175 stars 12 forks source link

Issue with CharacterController #4937

Closed OlziYT closed 8 months ago

OlziYT commented 8 months ago

Describe the bug

When i'm crouched with the CharacterController and i jump (CTRL stay pressed), the collision box and camera of the player does not reset her size to default, she stay to crouched size.

To Reproduce

Stay press CTRL button and press once SPACE button

Expected behavior

The size of the player box collider need to be reset when i stay press on CTRL and press once SPACE button

Media/Files

No response

Additional context

No response

andy013 commented 8 months ago

You can check CharacterController.IsOnGround and then uncrouch if it's false.

cr4yz commented 8 months ago

This is expected. We recommend writing your own controller or modifying the default one to achieve the exact behaviour you want.