Collision layers and masks: how do you organize them in a growing project?
Early on I just put everything on the default layer. Now I have players, enemies, projectiles, pickups, triggers and terrain, and I keep getting bugs like enemy bullets hitting other enemies or pickups blocking movement.
How do you plan your collision layers? Do you write down a matrix of what collides with what, and do you name them in code to avoid magic numbers?
Comments · 0
No replies yet — start the conversation.