Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlayerController bug when ducking in water. #7319

Open
f1ndme opened this issue Jan 5, 2025 · 0 comments
Open

PlayerController bug when ducking in water. #7319

f1ndme opened this issue Jan 5, 2025 · 0 comments

Comments

@f1ndme
Copy link

f1ndme commented Jan 5, 2025

Describe the bug

The PlayerController seems to 'get stuck' while ducking in water. The PlayerController uses MoveMode-Swim to adjust Swim Level. Or how high the player can stick out of the surface of the water before breaking. If you keep this at 0.7, and go to the top of the water, only the head an some shoulders will stick up as expected.

If you hit the 'duck' button, the player controller seems to get stuck in the crouch mode. Going back to the surface of the water, the PlayerController will stick out to about their waist now, before breaking the surface. Even with the MoveMode-Swim float staying the same.

To Reproduce

  1. Create Scene with PlayerController & a Block that is tagged water.
  2. Notice how PlayerController component MoveMode-Swim is set to 0.7
  3. Break the surface of the water slowly to realize the MoveMode-Swim float works accordingly.
  4. At any time, press duck while in water, the player controller will noticeably change positions and get 'stuck' there.
  5. Break the surface of the water again after pressing duck, you will notice the playercontroller floats way higher above the surface before breaking.

Expected behavior

The PlayerController shouldn't do that weird jerk that happens while crouching in water. Which causes it to get 'stuck' in crouch mode, and stops the MoveMode - Swim component from working properly.

Media/Files

Essentially, if your swimming with the player controller. And you crouch. It seems to get stuck. And it breaks how MoveMode - Swim works. To make it stop, you have to leave the body of water, and re-enter, without hitting crouch. As soon as you hit crouch while swimming, something gets stuck.

https://github.com/user-attachments/assets/11e12280-fc99-4fb4-87ea-babdac9385e9
Image
Image

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant