QoL grab-bag: Tickbox for hand visibility, keep SteamVR worldspace when visionOS recenters #55
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:
.added
event on entry to VR mode, so we can check the distance to them and set them as the origin if they're within 3.5mFixed a regression which caused the world to wobble and SteamVR overlay to judder (maybe? I definitely fixed the wobble though.)moved to another PR, it does in fact cause judder in SteamVR tho, but the world sloshing will cause sickness so that's what's importantRecentering behavior:
The visionOS immersive space is tiny, but we can actually mitigate this slightly: WorldTrackingProvider allows us to add WorldAnchors, which means that if we add an anchor at (0,0,0), we will receive updates about where this anchor is. When the Crown Button is held, it will recenter the visionOS coordinate space, and notify us that the origin anchor has moved.
By applying the inverse transform, we can maintain the SteamVR centering even though visionOS has a new origin, effectively extending the playspace, albeit with some manual intervention. Works great for moving between the couch and standing though.
Settings:
Currently they aren't saved anywhere, if it's a simple fix I can add it but otherwise let's just kick the can down the road. Dunno how visionOS app storage works tbh.
Pictures:
Video of anchoring in action: https://youtu.be/DGSGwOfSahU