feat: add snap vertical movement to XrNavigation script#8420
Merged
Conversation
Add snap vertical movement using right thumbstick Y-axis for VR navigation. This allows users to move up/down in discrete steps (like snap turning but for height), which is more comfortable than continuous smooth vertical movement. New features: - Right thumbstick Y: Snap up/down by 0.5m (configurable) - Right grip + thumbstick Y: Snap up/down by 2.0m (boost mode) - Uses same hysteresis system as snap turning
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds snap vertical movement to VR navigation, allowing users to quickly adjust their height in VR using the right thumbstick's Y-axis. The implementation follows the same hysteresis pattern as existing snap turning to prevent motion sickness and provide comfortable VR locomotion.
Changes:
- Added snap vertical movement feature using right thumbstick Y-axis for instant up/down movement
- Implemented boost mode via right grip button for larger vertical jumps (2.0m vs 0.5m)
- Added five new configurable attributes for controlling snap vertical behavior (enable toggle, heights, thresholds)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
|
How to reset to XR's Y0? |
Contributor
Author
There isn't a reset function at the moment. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New Controls
New Script Attributes
Why Snap Instead of Smooth?
Snap-based vertical movement is significantly more comfortable than continuous smooth movement because:
Test Plan