Search Unity

Orientation problem

Discussion in 'Scripting' started by Johnny0511, Apr 11, 2022.

  1. Johnny0511

    Johnny0511

    Joined:
    Apr 5, 2022
    Posts:
    5
    Hello,

    Recently I added to Unity an object I have created in blender. The problem I am facing, is that my orientation and axes are wrong. For example, transform.forward moves my object to the right. This also happens with my axes and I don't know how to fix it. It's becoming impossible to use any transform or axes direction, because every time I have to find the correct axes by trying and failing many times. I have tried rotating it and some other solutions, but no luck.

    Thank you for your time.
     
  2. passerbycmc

    passerbycmc

    Joined:
    Feb 12, 2015
    Posts:
    1,741
    what are you using for your fbx, export settings in blender, and what are you using for import in unity?

    This is what i use in blender, you want to set your Up axis and Forward not to what Unity uses for those, but to how your axis are being used in blender. Also make sure Apply Transform is enabled.
    upload_2022-4-11_9-51-35.png

    in Unity i have this.
    upload_2022-4-11_9-54-11.png
     
    Kurt-Dekker likes this.
  3. Johnny0511

    Johnny0511

    Joined:
    Apr 5, 2022
    Posts:
    5
    Thank you for your feedback, I'll have a look

    Edit: Possibly the apply transform wasn't checked