How i can cut collision

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

I have a square collision
Like this

How can i cut a circle in the middle of it so it becomes
Like this

(Sorry about image, i cant post my image to here)

Mind i ask what is the purpose of this removal of shape in the middle?

Gil-Koren | 2022-07-30 08:14

:bust_in_silhouette: Reply From: Inces

I doubt You really need to do this.
Just use two collision shapes - square and a circle, and design your collision behavior depending on how many of these shapes are overlapping collider.
(for example : if enemy touches a square but doesn’t touch a circle - make enemy bump. If enemy touches bouth shapes - do nothing )