- Home /
House Collision
I've mapped a house in 3ds Max and I'd like to make it so the player isn't able to walk trough he walls of it but still is able to walk trough the door.
How am I able to do this?
Thanks in advance!
Answer by Fattie · Dec 29, 2012 at 01:50 PM
This question comes up a lot.
When you make video games, very typically - basically "always" - you make the colliders, in the game engine.
You do that using primitive colliders. Indeed, almost always just "boxes".
This question comes up often on this site: a new developer will say like this: "So, I have this great model and I put it in Unity. What the hell do you mean I now have to sit there, and add colliders myself? Isn't this automatic? Can't I use the mesh or something?" The answer is that indeed you have to do it yourself by hand, in Unity - adding basically box colliders.
Regarding "a door" specifically (or any of the other problems you face) - it's just a matter of sitting there and carefully adding colliders. A "wall with one door" is usually three colliders -- see? (One kind of above the door and one at each side.)
That's what video game engineers do - sit there all day adding colliders in unity. Amazingly glamorous right?
There is a recent detailed answer on this here:
http://answers.unity3d.com/questions/367387/using-a-maya-made-mesh-as-interior.html
Your answer
Follow this Question
Related Questions
House Collision 1 Answer
Script appears as null and not null at the same time 1 Answer
Player getting stuck in corners 0 Answers
Weird Collisions Between Paddle and Ball (Breakout) 0 Answers
New sprites in 2D projects only? Cannot add in 3D project 0 Answers