Xcode场景编辑器bug - applyImpulse bug?

时间:2017-04-19 08:42:25

标签: ios swift xcode skphysicsbody skscene

我正在使用Xcode中的场景编辑器开发新的tvOS游戏。

当远离场景定位点时,applyImpulse是否有任何理由更强大?

例如,我可以驾驶汽车到下方场景的右侧,它比靠近场景定位点时旋转得更快。这真的很奇怪。有没有其他人使用场景编辑器有这个问题?似乎物理在远离场景定位点时被放大。

我如何应用冲动:

func playerRotateRight() {
  self.player?.physicsBody!.applyImpluse(CGVevtor(dx: 0, dy: -0.05), at: CGPoint(x: 10, y: 20))
}

func playerRotateLeft() {
  self.player?.physicsBody!.applyImpluse(CGVevtor(dx: 0, dy: 0.05), at: CGPoint(x: -10, y: 20))
}

这是场景: enter image description here

0 个答案:

没有答案
相关问题