See Colliders

Hi I have a probably stupid question.

I imported a mesh into unity and wanted to apply a box Collider to it. However in the scene window I dont see my collider (visible) i only see the mesh so i always need to figure out by trial and error how big the collision box might be.

I guess there is a UI Button which allows me to see the Collision Boxes around these objects as i saw that in Tutorial however it isn’t visible at my pc even after resetting the window layouts to factory default.

Are you using Unity 3.4?

Colliders should show up in green wireframe for the currently selected item. If there's no lines and you're sure there is a collider then it sounds like a glitch. Have you tried turning it off and on again?

2 Answers

2

I use the latest unity version.

i posted a screenshot as you can see the box colider is much larger than the actual object but isn’t visiblie

Hey deathripper, since this is an answer site and not a forum please use the add new comment button to add comments instead of the answer field below. Answers are treated differently and not sorted by date so it can be hard to follow a conversation in answers

Something to keep in mind is if your object has a Box Collider component with a size of 2,2,2 and your object itself is scaled to 2,2,2 then you have a collider that is 4,4,4.

Try resetting your Player object to have a scale of 1,1,1 then reset the Box Collider size to be 1,1,1 and see if it shows up, then do small tweaks to get it the right size.

from the screenshot you posted it looks like your Player object has some children that are the visual parts of the helicopter. If you move them outside of the Player object, reset the scale of the Player object to 1,1,1 and then put them back inside the Player will be correctly scaled while not changing the size or scale of the helicopter.