I have two non-kinematic rigidbodies that I’m moving using AddForce in FixedUpdate. When one of the rigidbodies reaches the edge of the screen, I wrap it around to the other side by assigning transform.position to the new position. What this means is that the re-positioned wrapped rigidbody can end up “on top” of the other one, i.e. they are intersecting. At this point they are stuck.
My question is how can I get Unity’s physics engine to allow these “stuck” rigidbodies to move through each other, perhaps with more friction than normal, so that they sort of “stuggle” to get free of either other but without being completely stuck? For instance can I chance the physics material to allow this?