[ad_1]
I’ve a SpriteKit recreation by which there are each static and dynamic our bodies. Among the dynamic our bodies are small and fast-moving.
Based on Apple’s documentation, I ought to set usesPreciseCollisionDetection to true on small, fast-moving our bodies as a way to keep away from tunneling (the time period for the eventuality that one physique erroneously penetrates one other physique).
The excellent news is that setting this property has no noticeable impression on the efficiency of my recreation. The dangerous information is that I am nonetheless seeing tunneling.
I attempted setting usesPreciseCollisionDetection = true on each the small, fast-moving our bodies and the static obstacles. Nevertheless, tunneling nonetheless happens (and the documentation appears to trace that setting it on each our bodies is pointless).
Is there anything I can do to cut back or remove tunneling in a SpriteKit recreation?
Any assist can be tremendously appreciated!
[ad_2]
