Bounding CharacterBody2D together

Version: Godot 4.2.2

Hello everyone! I’ve been using Godot for about a month and a half now.
I couldn’t find a way to “bound” 2 players (using separate controls) to a radius around them.


Maybe this drawing can help visualize what I mean.
The radius around them need to be bound in the black part (in the middle).

I would gladly accept some help or if you can help me figure out what to look for in the docs / forum.

Many thanks!

1 Like