- Home /
Adding colliders to a level
Hi! i'm making the levels and assets for my videogame in Blender, and i would like to know what is the best way to add colliders to these levels, for example, i have a level which is a train station and there are walls of different sizes and other structures, so what can i do to add colliders to a scene like this, should i add lots of box colliders? or there is a better way?
For now i only have a collider for the floor, but if i want to make a collider for walls and i have lots of walls, that would mean lots of box colliders each for every wall?
Any help would be appreciated, thanks in advance!!
It kind of depends on the target platform. PCs can handle using a $$anonymous$$eshCollider, while mobiles will see performance gains from many BoxColliders. In short, you can easily add a $$anonymous$$eshCollider using the mesh of your level geometry and measure the performance impact to deter$$anonymous$$e if this is acceptable for your use-case. Where I work, and because we target mobile, we don't use $$anonymous$$eshColliders for anything.
Also remember that any colliders which move about the scene (platforms, doors, et al) should have rigidbodies attached.
Thanks a lot iwaldrop, i will try both the box colliders and mesh colliders for some meshes. Thanks again!
Your answer
Follow this Question
Related Questions
Using a collider to define the boundary of a level? 3 Answers
Blender Terrain in Unity 1 Answer
Making primitive colliders for FBX maps? 1 Answer
CHaracter walking through walls 3 Answers
Collision problems with level design 1 Answer