how make mob move more randomly in Navigation2D, and how to make mob dont overlap?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatobanana

1 what i want is, when mob close each other, they wont overlap each other(make them look like just one).
-i try collision, but they stuck did’t move.
-if use area2d, what logic should i put?

2 if mob 1 end pos (10,10) and mob 2 end pos (10,15),they will keep move in same line. until at last 1 or 2 tile before change to correct position.
i want they move in different line.

func _on_spawm_mob_timer_timeout() → void:

for random_spawn in range(3):
	var mob_instance = mob.instance()
	get_node("mob/YSort").add_child(mob_instance)
	mob_instance.position = start_pos_array[randi()%start_pos_array.size()].get_position()
	mob_instance.goal = Vector2(1200,rand_range(249,630))
	mob_instance.nav = nav

this navigation use tile

when i use NavigationPolygonInstance, my mob will stop half way

:bust_in_silhouette: Reply From: supper_raptor

You should read this https://gamedevelopment.tutsplus.com/series/understanding-steering-behaviors–gamedev-12732