Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

343
Views
The collider generated by tilemap collider 2d is slightly too big

When I use tilemap collider 2d the collider is too big. I attached a picture showing the bug with 2 squares with a box collider 2d and rigidbody 2d falling on the tilemap, without touching it.

The bug

edit: StackOverflow doesn't let me change the tag I put on accident (from unity3d to unity2d) and after I deleted the post and tried reposting with the right tag it doesn't let me post the corrected version because its a mirror of this one so sorry...

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try lowering Default Contact Offset. You can edit it under Project Settings > Physics2D.

It essentially defines half of the minimum distance two colliders need to be from each other to register as colliding.

Set a proximity distance value for colliders to be considered in contact, even they are not actually in contact. Colliders whose distance is less than the sum of their contactOffset values generate contacts. This allows the collision detection system to predictively enforce the contact constraint even when the objects are slightly separated.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!