I'm trying to use Farseer to make a tile engine, but bodies that are not colliding with a sprite are still having an effect on it.
In this image there is a single sprite(the green box) and a single tile. The sprite rests right up against the tile like it should.
and in this one there are 2 tiles. The sprite is not colliding with the tile on the right, but when the tile is placed the sprite moves a few pixels upwards and cannot move to the right as if it was hitting the edge of the right tile. Then when the tile is removed, the sprite falls back down and everything is fine again.
I have gone through the debugging, everything has the values I would expect and my OnCollision method is only being called by the tile that is actually colliding with the sprite.
The only thing I'm doing that might not be "normal" is reusing bodies for the tiles near the sprite and just moving their positions every frame(I'm 100% they're being moved to the right spots). Could this be causing the problem somehow?