Collision with one Dynamic Circle and multiple Static Circles

Viewed 28

Hello i have been trying to code something and i've been on one issue for alot of time

I am not sure what could be the formula to solve this,

Here what's happening

Black Ball : Dynamic Circle

Other Colored balls : Static circles

INFO : My collision system goes through objects with ascending IDS , so i will note the circles IDS in the middle of the balls.

First of all , we enter between the balls

Dynamic circle overlapping to static circles

So by logic , we will check the first ball and add the collision with it.

Going through check with the first ball

We finished Collision with the first ball , now lets do the second!

Going through check with the second ball

Our collision are over but.. it seems that it is still colliding with the first ball because it already went through it.

What formula or Code could i go through to get this result?

What i actually want to happen

PS : i've tried to get the the sum of the two collision then put it on the player but its just going between them.

0 Answers
Related