How to Debug SpriteKit Forces

47 Views Asked by At

In my SpriteKit train game, sometimes I get a strange behaviour. Most of the time everything works fine. But sometimes the engine sprite gets an impulse, so it moves out of the tracks.

Out of tracks

I checked my entire code if there are some applyForce(), etc. But the impulse comes from SpriteKit, but I don't know why.

Is there a possibility to debug SKPhysicsBodys so that I can identify the cause of the impulse?

0

There are 0 best solutions below