newbie 'walk through' questions

Hi Folks, I wonder if you can help. My first unity project is a ‘simple’ walk through of a two floor building created in Maya. At least I thought it would be simple.

I’m using the first person controller, fine it moves great, trouble is it walks through the building walls as well, didn’t want that particular ‘walk through’ effect. I want it to be able to climb stairs too. I think its a matter of using colliders, but which combination?

Thank you
Susan

You want mesh colliders on your scene objects (hence the wall and stair issue), but it might be better to use a sloped cube collider for the stairs (so it’s like a ramp).

I haven’t played with the character controller much myself, so I don’t know if the ramp thing is needed.

-Jeremy

I tried adding a mesh collider to the maya object but it didn’t work. I’ve just now played around a bit and found that where the object is grouped, if you dig down into the lowest level components and apply the mesh there it does.

Thank you

Susan

Right Click the Icon (prefab) of your building model in your ‘project’ folder.
click ‘import settings…’ and a popup window for that mesh appears.
There should be an opton box which says ‘meshes have colliders’ - if it’s unchecked activate it.
If you haven’t broken the connection between you prefab and the model in your scene you should now be able to collide correctly with the model.
Otherwise drag your model into your game scene, again.

Hope that helped. Regards :slight_smile:

Thankyou that’s fixed it. Great!