Search Unity

Collider not aligned with the Object rotation

Discussion in 'Physics' started by Yetta10, Jan 31, 2019.

Thread Status:
Not open for further replies.
  1. Yetta10

    Yetta10

    Joined:
    Apr 17, 2018
    Posts:
    2
    Hi I'm new to this community and I have very little experiences with Unity. Can anyone help me with this problem?
    When I apply a box collider on this object, it is not on the correct position and it can't rotate to align with the object.
    The transform is freeze, the object's pivot point is align to the world.
    Any solutions to this?

    Here is a screenshot of what happens
     

    Attached Files:

    grafiboys and hyouuu like this.
  2. lightbug14

    lightbug14

    Joined:
    Feb 3, 2018
    Posts:
    447
    Hi, that's probably because your 3d model have that specific rotation. You can:
    1 - Reimport the model with the correct orientation.
    2 - Put the object(without colliders) inside an empty object and add to this a boxCollider. Then rotate the child (the mesh) to align it.
     
    thyphy, grafiboys and Yetta10 like this.
  3. Yetta10

    Yetta10

    Joined:
    Apr 17, 2018
    Posts:
    2
    thank you!
     
  4. grafiboys

    grafiboys

    Joined:
    Sep 2, 2020
    Posts:
    9
    Thank you!
     
  5. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,433
    There's a "Like" button on the forum so that you don't have to necropost a four year old thread just to say thanks.
     
    grafiboys and MelvMay like this.
Thread Status:
Not open for further replies.