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.




Unity Developer, Software Engineer, Game Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Dynamic API calls Using Fetch and RestClient

Probot 7.0: Moving to TypeScript to Help the Developer Experience


Business Data Extractor with Google Places API, Next.Js, and Node

Biden prone to break obstructions, pick lady to lead Pentagon

What is ppc and how does it work https://mdigital101.blogspot.com/2022/01/what-is-ppc-and-how-does-i

Ways to style in React

Handle requests with Eventrix

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
Kyle W. Powers

Kyle W. Powers

Unity Developer, Software Engineer, Game Developer

More from Medium

Post Processing in URP for Unity 2020

What are Unity Skyboxes?

Feature Frenzy

Switch Statements To The Rescue!