openvr watch

This commit is contained in:
galister
2024-01-28 22:03:25 +01:00
parent 220b87659e
commit 3b0440562a
5 changed files with 12 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
use std::{sync::Arc, time::Instant};
use chrono::Local;
use glam::{vec2, Affine2};
use crate::{
backend::{
@@ -158,6 +159,8 @@ where
});
button_x += button_width;
}
let interaction_transform =
Affine2::from_translation(vec2(0.5, 0.5)) * Affine2::from_scale(vec2(1., -2.0));
let relative_to = RelativeTo::Hand(state.session.watch_hand);
@@ -169,6 +172,7 @@ where
spawn_scale: 0.065,
spawn_point: state.session.watch_pos.into(),
spawn_rotation: state.session.watch_rot,
interaction_transform,
relative_to,
..Default::default()
},