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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Object Rotation from a Model

Discussion in 'General Discussion' started by darkXside, Jun 29, 2016.

  1. darkXside

    darkXside

    Joined:
    Nov 2, 2015
    Posts:
    8
    Hello,

    First, id like to say i watched many videos on youtube and tried many things to get my car rotation to be fixed which the angle 180 to be in right position. im using blender 6.x and couldnt really figure out to bring it to the forward widget to the Z axis. i need some help to fix this. if theres a fix into unity (which i tried some older posts it only switch my Y axis). need something helpful :) thanks
     
  2. roger0

    roger0

    Joined:
    Feb 3, 2012
    Posts:
    1,208
    Are you trying to keep the car pointing in the direction its moving?

    I'm not exactly sure of the question. Could you provide some more info?
     
  3. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,986
    Either nest it rotated in a parent, or more optimally, export from blander as an fbx and apply transform in the export dialog, settin z as forward.
     
  4. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    In Blender Y is forward. Yeah, that stupid, I know. Unity will autorotate it on import (it can import .blend files directly as long as Blender is installed on your machine). Then you have two choices. Either treat Y as forward (since Unity will rotate the object to have 270,0,0 rotation by default) or place an empty object (gameobject->create empty) and move it, instead of the actual car.
     
  5. darkXside

    darkXside

    Joined:
    Nov 2, 2015
    Posts:
    8
    thanks for the replies anyways i cant use them for commercial, and i actually made it from creating the empty(i just forgot that way)