The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/util: increase thumb openness state of sim hand

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2340>

authored by

othello7 and committed by
Rylie Pavlik
12c51b70 97733c01

+3 -3
+3 -3
src/xrt/auxiliary/util/u_hand_simulation.c
··· 411 411 hand.thumb.metacarpal.swing.x += values->thumb * 0.08f; 412 412 hand.thumb.metacarpal.swing.y += -0.35f; 413 413 hand.thumb.metacarpal.twist = 0; 414 - hand.thumb.rotations[0] += values->thumb * -1.f; 415 - hand.thumb.rotations[1] += values->thumb * -1.f; 414 + hand.thumb.rotations[0] += values->thumb * -1.57f; 415 + hand.thumb.rotations[1] += values->thumb * -1.4f; 416 416 417 417 // Index finger - this is treated differently on Valve Knuckles controllers so the pinch gesture feels good 418 418 float finger_values[4] = {values->index, values->middle, values->ring, values->little}; ··· 420 420 { 421 421 int finger = 0; 422 422 float val_turn = finger_values[finger] * -1.1f; 423 - hand.finger[finger].proximal_swing.x = val_turn * 0.9f; 423 + hand.finger[finger].proximal_swing.x = val_turn * 1.3f; 424 424 hand.finger[finger].rotations[0] = val_turn; 425 425 hand.finger[finger].rotations[1] = val_turn; 426 426 }