Hi,
I am new to Unity. I am having a problem with a collider object. I wonder how to make a player can’t pass through the object.I try Sphere Colider but it’s seem not working, my player still walk through it.
you can see my project in here :https://drive.google.com/file/d/0B_higDZ_FdFNcHZnYjNlemxBZm8/view
You have to add a mesh collider to the gameObject.
Click on the gameObject that is able to be walked through.
Go to the “Add Component” button in the Inspector.
Seach, “Mesh Collider” and click on the option with the green box as its icon.
Now test it in game mode and the player shouldn’t be able to go through it.
Let me know if this doesn’t work…
cradiff
September 16, 2021, 10:57am
3
My game what is working well with hero can’t go through wallet by this set up.
Hero
Wall
You can see there are 2 collider in hero, one for wall and one trigger checked for other action