So I must have totally missed this basic subject, but for anyone out there having performance issue based on physics, maybe you have things colliding or enter triggers when they don’t necessarily need to, setting that object with a specific layer and then tinkering with the collision matrix to have only the layers you want colliding with X layer really does help with things! For example I don’t want Enemies to register collisions with other Enemies, or maybe I only want weapons (which have a Weapon layer) to collider with an EnemyHitbox layer, and this layer could be attached as a child of the enemy. Thought I’d just share, in case anyone else was having these kinda performance issues Apologies if this is in the wrong chat, feel free to move!
Helpful to those who don’t know. But, next time include a link to the documentation or some other reference to support your post:
Unity - Manual: Layer-based collision detection (unity3d.com)
Just a friendly tip
1 Like