SKSpriteNode 不会遵循确切的路径

SKSpriteNode won't follow exact path

图中描述了问题。

to 2: 如果移除阻塞节点,SKSpriteNode 应该再次移动

根据您在评论中的 objective:

如果您需要将节点(SKSpriteNodeSKShapeNode 等)移动到场景中的特定坐标,这里是您的示例:

let boxSize = CGSize(width: 50, height: 50)
var box = SKShapeNode(rect: CGRect(x: 25, y: 25, width: boxSize.width, height: boxSize.height))
var point = CGPoint(x: 25, y: 125)
var animTime:TimeInterval = 2
box.physicsBody = SKPhysicsBody.init(rectangleOf: boxSize)

let moveToPointAction = SKAction.move(to: point, duration: animTime)
box.run(moveToPointAction)