Set physic body in SKTileMapNode on Spritekit

107 Views Asked by At

I’m using Spritekit and a SKTileMapNode. I have some tilesand I want to add them a physic body for create a collision. How can I do that?

1

There are 1 best solutions below

0
On

Use a separate node with a physics body the size of all of the tiles that are joined together to create 1 meta body, and have it overlay your tiles.