user6604616
user6604616

Reputation:

How to make a box acts like a box collider

I'm working on a game project using Unity 5 and I have created some buildings with Building Generator v0.7 plugin in 3Ds Max and then I inserted them into Unity but the problem comes from where I wanted to add Box Collider. Basically my computer couldn't handle the process because it does not a powerful system so I decided to add Box Collider using a box (3d object)! So here's an image of my building:

print screen 1

And here's the box that I wrapped around the building as Collider:

print screen 2

So my question is how to make this box acts like a collider so the box would'nt be visible but it does what it's supposed to do...

I really appreciate if you know how to solve this problem ,thanks in advance.

Upvotes: 0

Views: 279

Answers (1)

Programmer
Programmer

Reputation: 125305

So my question is how to make this box acts like a collider so the box would'nt be visible but it does what it's supposed to do.

Simply disable Mesh Renderer on the cube. The collider will still be functional if Mesh Renderer is disabled. You can always re-enable it, use its visual to resize your Collider, then disable it again. If you think you will never need to see that cube again, then remove the Mesh Renderer entirely.

enter image description here

Upvotes: 2

Related Questions