Make player appear on other side of screen using colliders

I’m making a game that shoots the player +y using AddForce in OnEnterColliders.
I want the player to loop around to the opposite side of the screen when going out of bounds to the right or the left of the screen.
I have drawn the screen boundaries with EdgeCollider2D on each side of the screen to make my player appear on the opposite side.
But EdgeCollider2D seems very unreliable as my player is not moving fast at all, half the time it doesn’t register anything and the player just goes out of bounds. Should I be drawing BoxCollider2D instead? Could I get some help doing that or any alternative reliable solutions?

Try asking in Unity Engine - Unity Discussions, since your question is more of a physics question than specific to Android.

1 Like