Skip to content

Commit

Permalink
remove debug liens
Browse files Browse the repository at this point in the history
  • Loading branch information
manglemix committed Nov 20, 2020
1 parent 6008f7f commit abedb78
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions TrokaraScripts/scrollable_kinematic_arm.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ class_name ScrollableKinematicArm
extends KinematicArm


export var scroll_step := 0.5 # how much the arm moves with each scroll
export var scroll_step := 1.0 # how much the arm moves with each scroll
export var max_length := 10.0 # the maximum length of the arm


func _input(event):
if event is InputEventMouseButton:
if event.button_index == BUTTON_WHEEL_UP:
print(target_length)
target_length = clamp(current_length - scroll_step, min_length, max_length)
print(target_length)

elif event.button_index == BUTTON_WHEEL_DOWN:
target_length = clamp(current_length + scroll_step, min_length, max_length)

0 comments on commit abedb78

Please sign in to comment.