Simple Arms

This commit is contained in:
2023-06-03 20:57:28 -04:00
parent e6a480ee37
commit 3485bc4f9f
7 changed files with 26 additions and 79 deletions

View File

@@ -50,4 +50,9 @@ func _input(event):
"flick_down"
)
$PinJoint2D/RightJointElbow/RightArmBot.apply_impulse(flick*100)
var flick_rot :float= 0
if flick.length_squared() != 0:
flick_rot = flick.angle() - PI/8*3
$LeftArm.rotation = flick_rot
$RightArm.rotation = flick_rot