Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Capsule collider is not centered from object inported from blender

Discussion in 'Asset Importing & Exporting' started by Klamyth, Apr 28, 2019.

  1. Klamyth

    Klamyth

    Joined:
    Jan 11, 2015
    Posts:
    4
    Hello.

    I made a simple model in blender to see how it would look in unity after i imported it. Most of it works fairly well, but i am confused as to why the capsule collider that i add to the model seems to be off center. I could change the center of the collider but i feel that will cause issues later on. Please assist
     

    Attached Files:

  2. TheSniperFan

    TheSniperFan

    Joined:
    Jul 18, 2013
    Posts:
    712
    Have you tried the "Apply Transform" option when exporting? The collider is centered (look closely, it's at (0,0,0)), but the rest of the model is misaligned.
     
  3. Blenderik

    Blenderik

    Joined:
    May 14, 2013
    Posts:
    146
    Your parent object is in the center, but the meshes are not.
    Either move the parent to the meshes, the meshes to the parent (would make more sense) or put the rigidbody on your mesh object. There seem to be 2 mesh objects, so that is probably the least optimal solution.
    In Unity there is an option that says "Center", which is equal to Blender's Bounding Box Center (','), but it treats the entire hierarchy as selected, when you select the parent. If you click it, it will change to "Pivot", which might give you a better overview on where your components are located.
     
    MrWy07 likes this.