Skip to content

Commit

Permalink
Make the grip less easy to activate.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Sep 6, 2023
1 parent 5633ee7 commit b909ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xr_pinch.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ var prev_hand_right_transform:Transform3D
var prev_hand_left_pressed:bool
var prev_hand_right_pressed:bool
func _process(delta):
var hand_left_pressed = hand_left.is_button_pressed("grip_click")
var hand_right_pressed = hand_right.is_button_pressed("grip_click")
var hand_left_pressed = hand_left.get_float("grip_force") > 0.05
var hand_right_pressed = hand_right.get_float("grip_force") > 0.05

if prev_hand_left_pressed && prev_hand_right_pressed:
transform = pinchTransform(
Expand Down

0 comments on commit b909ec2

Please sign in to comment.