Hi I am getting a weird effect in my SpriteKit
game.
I have a wall around the screen,
which I had created staticbody
by using bodyWithEdgeLoopFromRect
.
By doing skView.showsPhysics = YES;
all bodies are also shown in the screen.
I have a ball in screen. Which having dynamic body
.
sometime when I do provide Force
to ball it pass throgh that static wall!!!
How is this possible??
Though I can see both bodies on screen, the dynamic ball sometime passes through the static wall.
I also given usesPreciseCollisionDetection = YES;
property to both physics bodies
.
But it doesn't prevent this issue.
How can I prevent this issue?