Apply Custom Physics Shape from one spritesheet to another
I'm working on a 2D platformer, and was working with the sprite editor when I came across a problem. I'm working with level assets (sprites) which I've needed to split up into multiple tiles to get them to align in the game world when placing them down. The default physics shapes were not very clean due to the assets being small, pixelated sprites. I then created custom physics shapes for each object in a level which was a bit of a pain due to the way I sliced them, but was able to get a clean result.
The problem is, I have different sprite sheets for different levels I'm working on. Though they all have the same overall shape and serve the same purpose per level, I would need to create a custom physics shape for each one.
I couldn't find anything in the documentation for custom physics shapes that allows me to copy them, so I'm led to believe that I'll probably need to have two separate layers of tiles to accomplish what I'm looking for (i.e. using one tilemap for collision and another for the visually distinct sprites of that level).
Would this be the best way to do this, or is there another way to copy physics shapes between objects?
Answer by Gigabitten_Gaming · Aug 18, 2020 at 12:33 AM
I have the same problem, and I can't find the solution either. To be honest, I don't think there is a good solution. Unity is like a swiss army knife, and even though Unity has many tools to make games with, very frequently the tools that Unity provides are just not able to get the job done.
Your answer
![](https://koobas.hobune.stream/wayback/20220612235153im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Character hits invisible ghost collision when jumping against objects while pushing against them 0 Answers
Tilemap doesn't showing on window?? unity 5.6.1f1 ,Tilemap not showing on the Window or as 2D Object 0 Answers
Unity2D Move character in tile increments with collision 1 Answer
Object with rigidbody2D doesn't move when it's supposed to 0 Answers