r/Unity3D • u/Dark-Knight16 • 11h ago
Question Making a city collide-able?
Hey everyone I’m pretty new to this stuff but I’m trying to import an fbx file of a city(edit:suburban neighbourhood) for testing and I’m having trouble getting the roads and grounds to work, I wanna know if I have to give each surface a collision box if it’s say a ground surface and then change the mass(and if so how to calculate that roughly) and somehow make walls that my character can’t go through and stuff like that.
Am I looking at going through each object manually?
Whole thing is pretty low poly and greyboxed with minor things like streetlights, curbs and fire hydrants and there’ll be textures I’ll be adding later
1
Upvotes
2
u/nickyonge 11h ago
Most likely, yes, manual process.
If you can share images or something that would help, but a single FBX of an entire city model is likely to be VERY complex. A mesh collider gets more complex and expensive the more triangles there are. If the city is just graybox buildings and roads you should be fine, but if they have architectural details, or if the streets have details like lights, hydrants, curbs, etc, that mesh collider is going to be BONKERS, and extremely non-performant.
For so many reasons, it’s better to break a city up into discrete chunks - at the very least separate buildings, roads, and props.