Skip to content

Fix falling animation when clicking input fields in settings#622

Merged
dooly123 merged 2 commits intodeveloperfrom
fix/settings-input-field-falling-animation
Mar 11, 2026
Merged

Fix falling animation when clicking input fields in settings#622
dooly123 merged 2 commits intodeveloperfrom
fix/settings-input-field-falling-animation

Conversation

@dooly123
Copy link
Collaborator

Summary

  • When clicking into an input field in the settings provider window, the character would start playing the falling animation
  • Root cause: BasisWalkMovementMode.Tick() zeroed the entire move vector (move = Vector3.zero) when MovementLock was active (input field focused), including the gravity/vertical component
  • CharacterController.Move(Vector3.zero) produces no downward collision, so isGrounded returns false on the next frame. After the 0.1s fallingGracePeriod, IsFalling becomes true and the falling animation plays
  • Fix: Only zero horizontal movement (move.x = 0; move.z = 0), preserving the vertical gravity component so the character stays grounded while the input field has focus

Test plan

  • Open the settings provider window in desktop mode
  • Click into any text input field (e.g. Admin tab UUID/Reason fields)
  • Verify the character does not play the falling animation
  • Verify the character cannot move horizontally while typing
  • Verify normal movement and jumping work correctly after deselecting the input field

🤖 Generated with Claude Code

dooly123 and others added 2 commits March 12, 2026 03:21
When MovementLock was active (e.g. input field focused), the walk mode
zeroed the entire move vector including gravity. CharacterController.Move
with zero vector meant no downward push, so isGrounded returned false on
the next frame. After the 0.1s grace period the falling animation played.

Only zero horizontal movement now, preserving the vertical gravity component
so the character stays grounded while typing.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@dooly123 dooly123 merged commit 55a8170 into developer Mar 11, 2026
13 of 14 checks passed
@dooly123 dooly123 deleted the fix/settings-input-field-falling-animation branch March 11, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant