My character still go right through the walls

I am following the tutorial, when I use the Cube shape to make the wall, there is no problem, but when i change the wall shape using cylinder shape, the player can penetrate the wall.
I already change the max depenetration velocity to 10000, but it still not working.

this is my wall, I’m using the cylinder shape to make it loop like a fence.
is it because the shape of the capsule collider?

Hi,

The more complex your collider shapes are, the more Unity’s physics simulation has to calculate. Is there a reason why you don’t use a simple BoxCollider for the fence?

I want to try something new…

How can I fix it? Do I need to change it all?
thnx :slight_smile:

I would remove the inner colliders. You do not need them anyway because the fence is inside the Box Collider.

thnxx :smiley:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms