Search Unity

Mesh Collider

Discussion in 'Editor & General Support' started by Christoo25, Jun 22, 2017.

  1. Christoo25

    Christoo25

    Joined:
    Jun 15, 2017
    Posts:
    7
    Hello everybody.

    I have some problems to import new weapons into the game.
    I have installed the asset "Ultimate Survival" and use the Item Manager to import
    new weapons or other items into the game.

    Now, I have these assets downloaded to get it into the game.
    https://www.assetstore.unity3d.com/en/#!/content/14233

    When I drop the AK47 into the scene and scale it from the basic-item
    with 0.125 to the right size which I need to have for my prodecural generation for animations
    and add a mesh collider to this weapon, set the ak47Mesh to the property "mesh" in the inspector,
    get it a totally wrong size.

    It shows like this:
    MeshColliderError.png

    What can I do to fix this? Why did this happen?
    Is it my fault or an error from the mesh?
     
  2. DroidifyDevs

    DroidifyDevs

    Joined:
    Jun 24, 2015
    Posts:
    1,724
    Try adding a Mesh Collider to the Body and Mag parts of the AK-47. Also, your Mesh Collider is using an AK-12s mesh, while your gun is an AK47 in the Hierarchy.
     
  3. Christoo25

    Christoo25

    Joined:
    Jun 15, 2017
    Posts:
    7
    Thank you. When I add the Colliders on the body and the magazine set it correctly.

    PS: I like your avatar picture with the cute cat =)
    Very Nice ;)
     
    DroidifyDevs likes this.