- Home /
Going through walls help!
I need help with a model of a labyrinth becuse i can walk trough walls and i would like to disable it. How do i do that?
$$anonymous$$ore Information. Have you a $$anonymous$$eshcollider on it? What collider have your Player?
Answer by EssyTech · Sep 21, 2013 at 02:12 AM
Create a mesh collider of your labyrinth. If the labryth is one 3d object, make sure the mesh collider only has the colliding detail (remove unnecessary triangles). If the labyrinth is several objects put together, the make mesh colliders out of each piece. Once you have the collider detail, then, attach a mesh collider from the unity physics system. Then attach your created collider mesh to that physics object. Make sure your player has a collider attached as well. In conclusion,, in order for two objects to collide, the objects need colliders.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
UnityEngine.Input.GetMouseButton(1)) issue 1 Answer
Making AI avoid obstacles and make it wander? 1 Answer
Prevent camera from going through walls and meshes 1 Answer
Help AI going through walls 0 Answers