disabled limb rotation
This commit is contained in:
parent
72835fd4ac
commit
6c526e895f
@ -119,15 +119,15 @@ func _input(event):
|
|||||||
if event is InputEventMouseButton:
|
if event is InputEventMouseButton:
|
||||||
if event.pressed:
|
if event.pressed:
|
||||||
if _viewport.get_viewport().get_mouse_position().x >= 0:
|
if _viewport.get_viewport().get_mouse_position().x >= 0:
|
||||||
if event.button_index == BUTTON_WHEEL_UP and _attachment_point != null:
|
# if event.button_index == BUTTON_WHEEL_UP and _attachment_point != null:
|
||||||
if _attachment_point.get_node("Limb") != null:
|
# if _attachment_point.get_node("Limb") != null:
|
||||||
_attachment_point.get_node("Limb").rotate_z(0.1)
|
# _attachment_point.get_node("Limb").rotate_z(0.1)
|
||||||
elif event.button_index == BUTTON_WHEEL_DOWN and _attachment_point != null:
|
# elif event.button_index == BUTTON_WHEEL_DOWN and _attachment_point != null:
|
||||||
if _attachment_point.get_node("Limb") != null:
|
# if _attachment_point.get_node("Limb") != null:
|
||||||
_attachment_point.get_node("Limb").rotate_z(-0.1)
|
# _attachment_point.get_node("Limb").rotate_z(-0.1)
|
||||||
else:
|
# else:
|
||||||
_prev_mouse_pos = event.position
|
_prev_mouse_pos = event.position
|
||||||
_viewRot = true
|
_viewRot = true
|
||||||
else:
|
else:
|
||||||
_viewRot = false
|
_viewRot = false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user