I am making a Diep.io Clone, and everything was going smooth until I made a collision resolution system for when a shape collides with another shape. Instead of them bouncing off of each other, they teleport to the center of the map and don't move. The collision resolution for when a bullet hits a shape works just fine, but I cannot figure out why this is happening and how I can fix it. Thanks

\$\begingroup\$Could you explain how this would be done? Currently, this answer could be considered as a link only answer because it does not tell the OP how they could solve their particular issue.\$\endgroup\$
– Alexandre Vaillancourt♦Apr 13 '18 at 14:47

\$\begingroup\$It pretty much means deleting your physics code you have now and use the physics engine instead!\$\endgroup\$
– Joza100Apr 13 '18 at 14:54

\$\begingroup\$Thanks for the answer @Joza100, but I'm looking for an answer that will help me fix my code, not replace it\$\endgroup\$
– PriswallApr 13 '18 at 15:14

\$\begingroup\$That's ok but your code is too big. I don't know who will have patience to read it. One LAST thing that i can suggest is trying to rewrite it. When you rewrite it you might get it right and not make the mistake you have just made\$\endgroup\$
– Joza100Apr 13 '18 at 16:34