Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过将 SKNode 固定到 SKScene 来修复空间中的 SKNode(节点具有物理体)。所以它可以参与物理模拟——碰撞、旋转等。但不能移动。这是允许的吗?有没有更好的方法来修复空间中的物理节点但让它参与物理模拟?
是的,您可以通过将dynamic属性设置为NO:
dynamic
NO
node.physicsBody.dynamic = NO;