Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Issue with mesh collider

Discussion in 'Editor & General Support' started by tawdry, Sep 21, 2015.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Hi guys
    I have a mesh collider on a mountain i created in blender. But when i try walk on it i go right through and then can't go back out as the mesh collider prevents it. What would cause a mesh collider to only work for one side of a mesh?If i change it to convex then it stops both sides but can't have it as convex.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Mesh colliders are not double sided:

    http://docs.unity3d.com/Manual/class-MeshCollider.html
    Collision meshes use backface culling. If an object collides with a mesh that will be backface culled graphically it will also not collide with it physically.

    If you want collisions on both sides then duplicate the mesh and flip the normals.
     
  3. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Was it always only 1 sided i could have sworn with unity 4 it swung both ways?Is that just my memory turning tricks?

    Well that sucks I have the shader set to double sided guess that does not matter. Have to redo the mesh now:(Thx for the reply
     
    Last edited: Sep 21, 2015
  4. Wolfram

    Wolfram

    Joined:
    Feb 16, 2010
    Posts:
    253
    elliot_eserin and EBhero like this.
  5. AqueuseAkaLLO

    AqueuseAkaLLO

    Joined:
    Aug 18, 2021
    Posts:
    7