when I use MOUSEBUTTON to contro charachater ,the colision will be disabaled with the tilemap

Godot Version

4.2.2

Question

when I use MOUSEBUTTON to contro charachater ,the colision will be disabaled with the tilemap

extends CharacterBody2D

var MousePos : Vector2
#var deraction : Vector2
@export var SPEED : int =1


func _physics_process(delta):
	if MousePos:
		if MousePos.distance_to(global_position) > 0:
			global_position = global_position.move_toward(MousePos,SPEED)
	pass

func _ready():
	MousePos = Vector2(position)
	

func _input(event):
	if event is InputEventMouseButton:
		if  event.button_index == MOUSE_BUTTON_RIGHT and event.is_pressed():
			MousePos = get_global_mouse_position()
	pass