feat: space drag multiplier

This commit is contained in:
galister
2024-06-17 14:36:21 +09:00
parent abc132c553
commit c7aa88647c
5 changed files with 21 additions and 2 deletions

View File

@@ -114,7 +114,8 @@ impl PlayspaceMover {
let new_hand = data
.pose
.transform_point3a(state.input_state.pointers[data.hand].raw_pose.translation);
let relative_pos = new_hand - data.hand_pose;
let relative_pos =
(new_hand - data.hand_pose) * state.session.config.space_drag_multiplier;
if relative_pos.length_squared() > 1000.0 {
log::warn!("Space drag too fast, ignoring");