- Home /
CHaracter walking through walls
I have several blender models and my player model keeps walking through the walls. For one type of platform I have three pieces - the floor, the right side wall, and the left side wall. For the second type of platform, those three pieces are just one model. In either case, when I check generate colliders the player will walk on the floor that's placed horizontally but will walk through the vertical walls. How can I stop it from walking through the wall models?
are you sure that you alseo have coliders on those walls ?
yeah I'm sure lol. $$anonymous$$esh colliders and i tried manually putting box colliders on it. And i tried duplicating the horizontal platform and rotating it to make it a wall...the model goes through it too and only when its vertical. :/
$$anonymous$$ake sure none of the colliders are checked as isTrigger and make sure your physics settings do not meddle with physics layers.
Try to add rigidbodies to them. A collider isn't enough if I remember correctly.
still nothing working...wow. I tried adding everything to it it still goes through the wall.
Answer by Prasanna · Sep 26, 2014 at 06:27 AM
Sorry for late reply, If you are using mesh collider, you need to tick convex under mesh collider component. You need to add rigidbody too.,
-Prasanna
Answer by Raynoko · Sep 26, 2014 at 10:20 AM
Or add simply characetrController, and edit his collider
Answer by infinuscerro · Mar 08, 2019 at 02:15 PM
@m0rr0ws0n I have same problem, the object through wall/object/cube. The problem solved after I reinstall the Unity software.
Your answer
Follow this Question
Related Questions
Adding colliders to a level 0 Answers
Tree rendering distance 1 Answer
Terrain detailed objects rotated + mesh wont save? 0 Answers
Using a Gameobject for terrain. 1 Answer
Huge terrain in Unity? 2 Answers