refine watch grab & hand switch

This commit is contained in:
galister
2025-12-10 18:29:13 +09:00
parent 87806a84d2
commit 6294ccae1c
4 changed files with 70 additions and 62 deletions

View File

@@ -10,18 +10,12 @@ pub enum Positioning {
Floating,
/// Stays in place, recenters relative to anchor. Follows anchor during anchor grab.
Anchored,
/// Same as anchor but paused due to interaction
AnchoredPaused,
/// Stays in place, no recentering
Static,
/// Following HMD
FollowHead { lerp: f32 },
/// Normally follows HMD, but paused due to interaction
FollowHeadPaused { lerp: f32 },
/// Following hand
FollowHand { hand: LeftRight, lerp: f32 },
/// Normally follows hand, but paused due to interaction
FollowHandPaused { hand: LeftRight, lerp: f32 },
}
impl Positioning {