The rotation of the object is the same as the mouse position
func _process(_delta):
if Input.is_action_pressed("click") && mouse_over1:
look_at(get_global_mouse_position())
How can I make it so that the rotation of the object is still based on the mouse position but it locks to a grid by 30?

I am trying to snap the hand to the highlighted spots
Thanks for any help