I'm trying to write an iOS game with Spritekit and Swift and this is my first question on stackoverflow :)
To simplify my problem and my constraints, let's say I have two rectangle SKShapeNodes (my level) with the same height which are completely side by side, with physics bodies but non-dynamic. The hero is just a square SKShapeNode with a dynamic physics body which can move on top of those rectangles. The player uses the accelerometer to move the hero.
I'm not sure why, but sometimes, as the hero slides along the top of the rectangles, it stops right away at the gap between the two rectangles, or seems to be tripping over this gap (small jump over it) :((( The move should be smooth instead.
Is there a workaround to make the surface between the two rectangles more "flat"/smoother, knowing that I can't merge them for the purpose of the game?
(Things I've tried which didn't work: "floor" all dimensions, positions to closest Int values; make the hero physics body rounder; enable/disable precise collisions).
Thanks!
