I have two objects colliding that shouldn't be

I have two objects that collide even when they are not moving, and are apart from each other.

Now I know it's rude not to include code. But before I start reducing my code to post it up here, at let me describe what's happening with a photo. Maybe I'll get lucky and it's something I'm overlooking since I am still learning.

Here are the two screenshots. I had to spilt the link because the forum won't let me post it completely.

https ://i.ibb.co/QYHcp3L/Untitled.png

In the left shot, everything you see, the two balls, and the left and bottom edges are created where you see them. The only thing I have not done is given the edges their SKPhysicsBodies. The edges purposes are just to keep the balls on screen. My intent is to keep the edges just a little off screen, but the same thing happens. I merely moved them in for the screenshots.

But in the right shot, I've just given the edges their physics bodies, isPinned is set to true for the edges and the masks are set so that ball and edge collide.

Yet for some reason, with nothing moving, the red ball collides with the bottom and left edges till it's pushed just off to the side.

This is all done under didMove. And I even tried not giving the edges their physics attributes till I tapped on the blank screen, and boom....everything suddenly collided.

If I have missed some sort of setting, would love to know. In the meantime, I'll start condensing all my code into one much smaller file.
From the description it sounds like the container has a physics body. All the objects inside are trying to resolve the collision by moving outside.
I appreciate that you tried to answer my question with no code. Sadly, the container has no physicsbody. And I can't condense this huge project into paste-able code.

So I'm just going to have to rebuild. But if I may pick your brain for a couple of thoughts? If without the code you can't I understand

1 - I removed the safeAreaLayout constraints, and that didn't help

but what intrigues me is....

2 - If I increase the ball axes each by 15, no contact.

3 - The edge borders I use are set at width-1 and height-1 If I make them -15, -15... there is contact.

So I'm wondering if edge based SKPhysics body have something different that I'm not aware of.




I have two objects colliding that shouldn't be
 
 
Q