Tilemaps and Composite Colliders

This short article will show how to give the Tilemap colliders for the tiles and then use Composite Collider to combine all the individual tile colliders.

To give all of the tiles on Tilemap colliders, select the Tilemap and add the Tilemap Collider 2D component. Now all the tiles have a collider according to the Alpha of the sprite.

To combine the colliders into one, add the Composite Collider component to the Tilemap. That will also add a Rigidbody 2D. Then enable Used by Composite on the Tilemap Collider, and you will make a single collider from the Tilemap Collider.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store