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.
我正在使用 Spritekit 和 SKTileMapNode。我有一些瓷砖,我想为它们添加一个物理体以创建碰撞。我怎样才能做到这一点?
使用一个单独的节点,其物理体的大小与连接在一起的所有图块的大小相同,以创建 1 个元体,并让它覆盖您的图块。