William LarskogTechnical Artist · Shaders · VFX · Tools
  • Galleri
  • Om mig

© 2026 William Larskog. Alla rättigheter förbehållna.

← Tillbaka till galleri

Collision Gen Tool

Publicerad 11 mars 2026

ToolsKod

A custom Unity Editor tool that automates collider generation for game assets. Automates the process by taking selected assets in a scene, reading their geometry data, calculating the border edges of a single mesh or multiple meshes combined, and generating a ready to use collider automatically. Before this tool was added to production, colliders were drawn point by point manually using the Polygon Pen in the PolygonCollider2D component. The tool reduced that work by roughly 80%, with the Polygon Pen now only needed for final polish rather than building the whole shape from scratch. The tool gets the border edges of the meshes and feeds them into a PolygonCollider2D, which works great here because it is just a closed polygon edge, and for a 2D game like Angry Birds 2, that's all that matters anyway. The result is a clean edge path that can be tweaked in the scene view using the Polygon Pen inside the PolygonCollider2D component. For a single asset, it traces the outer border of that mesh. With overlapping assets, instead of getting individual borders for each, the tool calculates the combined silhouette of all of them into a single clean outline. Once the collider outline is generated, the tool has a slider that lets you control how much detail to keep as a percentage. At 100%, every single vertex of the outer edge is preserved, giving you a replica of the silhouette. Pulling the slider down simplifies the outline and cuts the vertex count to the desired amount. At lower values and depending on the shape, the border can start to drift from the original shape in spots. Either way, tweaking with the Polygon Pen is part of the normal workflow as designers continue to iterate and test the level, so it's never really extra work.

Taggar

  • #NoAI
  • #Unity
  • #Tool
  • #Programming
  • #Tech Art
  • #Angry Birds 2
  • #Rovio
  • #Procedural
  • #Collider
  • #Colliders
  • #Tooling