This commit is contained in:
Snemby 2026-05-12 13:40:19 +02:00 committed by GitHub
commit 0c0746ddea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -88,10 +88,11 @@ impl PlayspaceMover {
return;
}
let pose_quat = Quat::from_affine3(&data.pose);
let new_hand =
Quat::from_affine3(&(data.pose * app.input_state.pointers[data.hand].raw_pose));
pose_quat * Quat::from_affine3(&app.input_state.pointers[data.hand].raw_pose);
let dq = new_hand * data.hand_pose.conjugate();
let dq = pose_quat.conjugate() * (new_hand * data.hand_pose.conjugate()) * pose_quat;
let mut space_transform = if app.session.config.space_rotate_unlocked {
Affine3A::from_quat(dq)
} else {