extends MeshInstance3D
var is_rotating = false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
func _input(event):
if event is InputEventMouseButton:
if event.pressed and event.button_index == 1:
is_rotating = true
else:
is_rotating = false
func _process(delta: float) -> void:
if is_rotating:
rotate_y(0.0009)