-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor XR pinch and orbit controls for improved VR interaction
- Updated xr_pinch.gd to ensure world rotation only occurs when both handles are used together. - Reintroduced the PINCH mode to handle zooming in and out. - Added debounce logic to handle grab state transitions smoothly. - Improved state management to ensure intuitive transitions between NONE, PINCH, and ORBIT modes. - Added deadzone threshold to prevent unintended zooming when the distance change is minimal. - Updated world_grab.gd with necessary transformations for orbit and pinch gestures. - Enhanced comments and documentation for better code readability and maintenance.
- Loading branch information
Showing
1 changed file
with
31 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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