Can now rotate the limbs

This commit is contained in:
mathias 2020-02-01 16:29:58 +01:00
parent dce77ae12d
commit 5b84587572

View File

@ -78,6 +78,11 @@ func _input(event):
if _viewport.get_viewport().get_mouse_position().x >= 0:
if event is InputEventMouseButton:
if event.pressed:
if event.button_index == BUTTON_WHEEL_UP:
_attachment_point.get_node("Limb").rotate_z(0.1)
elif event.button_index == BUTTON_WHEEL_DOWN:
_attachment_point.get_node("Limb").rotate_z(-0.1)
else:
print("Mouse Click at: ", event.position)
_prev_mouse_pos = event.position
_viewRot = true