mirror of https://github.com/wayvr-org/wayvr.git
persist static overlays in world space
This commit is contained in:
parent
42a7175b7f
commit
6a24399a9c
|
|
@ -232,7 +232,7 @@ impl OverlayWindowConfig {
|
|||
if hard_reset {
|
||||
(app.input_state.hmd, false)
|
||||
} else {
|
||||
return;
|
||||
(Affine3A::IDENTITY, false)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -295,7 +295,7 @@ pub fn save_transform(state: &mut OverlayWindowState, app: &mut AppState) {
|
|||
Positioning::FollowHead { .. } => app.input_state.hmd,
|
||||
Positioning::FollowHand { hand, .. } => app.input_state.pointers[hand as usize].pose,
|
||||
Positioning::Anchored => snap_upright(app.anchor, Vec3A::Y),
|
||||
Positioning::Static => return,
|
||||
Positioning::Static => Affine3A::IDENTITY,
|
||||
};
|
||||
|
||||
state.saved_transform = Some(parent_transform.inverse() * state.transform);
|
||||
|
|
|
|||
Loading…
Reference in New Issue