Bouncing bullets

It is a 3D shooter game, and I want to make a special type of bullet which is bouncing between enemies. I tried several methods but I can’t make this work no matter what.

For hit registration I use method, where I add enemy ID’s into array for projectiles, so one bullet can’t damage one enemy twice.

And this what I come up with so far.


The problem is that bullets or “magneting” to the only one enemy nor magneting to the only one specific enemy. I tried “bounce” function, but it is worse somehow.

Didnt try it in 3d but it should not matter if its 2d or 3d

Why u use the old 3d collision system not the 3d physics colliders system?